When the LayoutMode is set to Flow the size of the numbers is larger than expected.
This behavior is not observed in LayoutMode="Paged".
Appling the following command changing the margin but doesn't change the position of the DocumentRuler:
this.radRichTextBox.ActiveDocumentEditor.ChangeSectionPageMargin(new Padding((int)Unit.InchToDip(3.0)));
The result:
MethodInfo method = typeof(RadRichTextBoxRulerController).GetMethod("OnSeparatorsChanged", BindingFlags.NonPublic | BindingFlags.Instance);
method.Invoke(this.ruler.Controller, null);
<telerik:DocumentRuler x:Name="ruler">
<!DOCTYPE html>
<html>
<body>
<div><p>RadDocument</p></div>
<div>Document</div>
</body>
</html>
Dear all,
Exporting partially-selected annotation ranges (annotation markers around selection or only one annotation marker in the selection) with a DocumentFragment from a RadDocument does not seem possible (the DocumentFragment contains none of these annotation ranges).
For example, if I have a document ("[", "]" are the annotation markers):
"Test [annotated]",
select "Test [ann" and create a DocumentFragment, the Document fragment will contain "Test ann" and not "Test [ann]".
PS.: I am not sure if this falls into the feature request or bug report area.
The RtfFormatProvider does not take the fonts from the Font.Manager
Workaround:
Unregister all custom fonts and the use the FontSubstituting event to supply the correct fonts:
private void ImportSettings_FontSubstituting(object sender, Telerik.Windows.Documents.FormatProviders.FontSubstitutingEventArgs e)
{
var fonts = Wpf.Fonts.Fonts.GetAllAvailableFonts();
var ff = fonts.Where(x => x.Source == e.OriginalFontName).FirstOrDefault();
e.SubstitutionFontFamily = ff;
}
After the import is complete you can register the fonts again.