Skip to content

Copy the character and paragraph properties and apply formatting to the selected text.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/winforms-rich-edit-implement-ms-office-word-format-painter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Implementation Details

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.

Files to Review

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Copy the character and paragraph properties and apply formatting to the selected text.

Topics

Resources

License

Stars

Watchers

Forks