In Microsoft Word, the drag-and-drop functionality for Structured Document Tags (Content Controls) allows users to reposition an entire content control and all its contents within the document using the mouse.
What it does
When a user selects the boundary/frame of a content control rather than the text inside it:
Typical workflow
Common use cases
Important limitations
The behavior may be restricted when:
Word allows users to treat a content control as a movable document object, enabling the entire SDT and its contents to be repositioned via drag-and-drop while preserving the control's structure and properties.
How to reproduce: 1. Run the Mail Merge example (QSF) 2. Select the image inside the document and move it to another position
Import the following code: <ol> <li>Coffee</li> <li></li> <li>Milk</li> </ol
Font size drop-down:
The vertical and horizontal scrollbar positions get cached during scrolling. If you scroll around and then resize the RadRichTextEditor so that the scrollbars are no longer needed and then you resize the editor again to show the scrollbars, the cached position is used, instead of resetting it to 0,0.
This reproduces when the LayoutMode of the editor i set to FlowNoWrap.
To work this around, reset the scrollbars' Value to 0 on SizeChanged.
private void RadRichTextEditor1_SizeChanged(object sender, EventArgs e)
{
Normalize(radRichTextEditor1.RichTextBoxElement.VerticalScrollBar);
Normalize(radRichTextEditor1.RichTextBoxElement.HorizontalScrollBar);
}
private static void Normalize(RadScrollBarElement sb)
{
int maxUser = Math.Max(sb.Minimum, sb.Maximum - sb.LargeChange + 1);
if (sb.Visibility != ElementVisibility.Visible)
{
sb.Value = sb.Minimum;
return;
}
if (sb.Value > maxUser)
{
sb.Value = maxUser;
}
}
Currently, colors with an alpha channel defined with the 'rgba' function are not respected, for example, the following:
<span style="background-color: rgba(0, 0, 0, 0.5);">Some text</span>
It is imported as black color; semi-transparent colors are exported without the alpha channel.
ADD. RadRichTextBox - add support for line numbering