RichTextFormatter Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Rudimentary showcase of RichText and Toggleable Toolbar Buttons.
public class RichTextFormatter : CommunityToolkit.WinUI.UI.Controls.TextToolbarFormats.Formatter
type RichTextFormatter = class
inherit Formatter
Public Class RichTextFormatter
Inherits Formatter
- Inheritance
Button |
Gets or sets a map of the Actions taken when a button is pressed. Required for Common Button actions (Unless you override both Activation and ShiftActivation) (Inherited from Formatter) |
Default |
Gets the default list of buttons |
Model |
Gets the source Toolbar (Inherited from Formatter) |
New |
Gets the Characters used to indicate a New Line |
Selected |
Gets the current Editor Selection (Inherited from Formatter) |
Selection |
Gets or sets format used for formatting selection in editor |
Text |
Gets the formatted version of the Editor's Text |
Ensure |
Determines the Position of the Selector, if not at a New Line, it will move the Selector to a new line. (Inherited from Formatter) |
Ensure |
Decrements the selected position until it is at the start of the current line. (Inherited from Formatter) |
Get |
Gets the last line (Skips last Carriage Return) (Inherited from Formatter) |
Get |
Gets the line from the index provided (Skips last Carriage Return) (Inherited from Formatter) |
Get |
Gets an array of the Lines of Text in the Editor. (Inherited from Formatter) |
Model_Editor |
Called when text editor has changed (Inherited from Formatter) |
On |
Called after the Selected Text changes. |
Set |
Sets the TextToolbar where the Formatter is used |
Unset |
This method is called to unset event handlers that might have been registers by SetModel(TextToolbar) (Inherited from Formatter) |
Produit | Versions |
---|---|
Windows Community Toolkit | 7.0.0 |