Rich Text Editor for WinForms - How to Implement the Basic Idea of the MS Office Word "Format Painter"
This example demonstrates how to copy the character and paragraph properties and apply formatting to the selected text. Try the Format Painter button on the ribbon Home tab.
Use the Document.Selection property to obtain the selected text range. The CharacterPropertiesBase.Assign and ParagraphPropertiesBase.Assign methods copy character and paragraph format options.
A DevExpress.XtraRichEdit.Mouse.MouseCursorCalculator
implementation is used to manage the RichEditControl cursor.
- Form1.cs (VB: Form1.vb)
- MyRichEditControl.cs (VB: MyRichEditControl.vb)
(you will be redirected to DevExpress.com to submit your response)