The RichTextBoxFormatBar will apply text transformations to the selected text of a RichTextBox control. The RichTextBoxFormatBar will appear after a selection has been finished (when the mouse is released). The RichTextBoxFormatBar will also appear during the last click of a "double-click" selection. While the RichTextFormatBar is shown, you may click on any number of text transformations to be applied to the selected text. When done, you may click anywhere else in the RichTextBox control or move your mouse outside of the RichTextBox control to hide the RichTextBoxFormatBar. You can also drag the RichTextBoxFormatBar to a different position if it appears in a position that is not desired by clicking and holding on the drag thumb and moving your mouse to the desired location.
The RichTextBoxFormatBar can be attached to any RichTextBox control (either the toolkit's RichTextBox or the default .NET RichTextBox) by using the RichTextBoxFormatBarManager. You can even create your own formatting bar and use it instead, but still have all the functionality the RichTextboxFormatBarManager provides.
You can create your own custom format bar by creating a control that implements the IRichTextBoxFormatBar interface and setting the RichTextBoxFormatBarManager.FormatBar attached property to your new custom format bar instance.
Example
The following example adds the RichTextBoxFormatBar to the toolkit's RichTextBox.
You create your own custom format bar by creating a custom/user control that implements the IRichTextBoxFormatBar interface and setting the RichTextBoxFormatBarManager.FormatBar attached property to your new custom format bar instance.
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2