Good Day Telerik Team,
Is there a way i can copy the page Orientation and Margin of a richtextbox so that i can apply it to other richtextbox? :'(
heres my code:
I was able to copy and apply the layout mode and page Size of a RichTextBox to other RichTextBox. but i was not able to get the page orientation and margin. :(
Thanks,
Aubrey :'(
Is there a way i can copy the page Orientation and Margin of a richtextbox so that i can apply it to other richtextbox? :'(
heres my code:
RadDocument doc = new RadDocument();
this.radRichTextBox1.Document.Selection.SelectAll();
doc = this.radRichTextBox1.Document.Selection.CreateDocumentFromSelection();
this.radRichTextBox1.Document.Selection.Clear();
doc.CaretPosition.MoveToFirstPositionInDocument();
prev.rtbPrev.Document = doc;
prev.rtbPrev.ChangeLayoutMode(radRichTextBox1.Document.LayoutMode);
prev.rtbPrev.Document.CopyPropertiesFrom(radRichTextBox1.Document);
Thanks,
Aubrey :'(