Unplanned
Last Updated: 31 Jul 2020 09:35 by ADMIN
Tim
Created on: 31 Jul 2020 06:48
Category: RichTextBox
Type: Bug Report
0
RichTextBox: DocumentRuler is not updating its position when changing the section page margin programmatically

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:

A possible workaround could be calling the protected OnSeparatorsChanged() method using reflection: 
MethodInfo method = typeof(RadRichTextBoxRulerController).GetMethod("OnSeparatorsChanged", BindingFlags.NonPublic | BindingFlags.Instance);
method.Invoke(this.ruler.Controller, null);
Where this.ruler is:

<telerik:DocumentRuler x:Name="ruler">

0 comments