ShowMiniToolbar Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Gets or sets a value indicating whether a mini-toolbar is shown. A mini-toolbar is a small popup window with formatting options for the current context of the document. The bitwise or operator can be used to combine the values listed below.
Syntax
public MiniToolbarButton ShowMiniToolbar { get; set; }Public Property ShowMiniToolbar As MiniToolbarButtonMembers
| Value | Description |
|---|---|
| LeftButton | A mini-toolbar is shown when the left mouse button is released and text is selected. |
| RightButton | A mini-toolbar is shown when the right mouse button is released. |
| None | A mini-toolbar is never shown. |
Examples
The following example uses TextControl.ShowMiniToolbar to configure show mini toolbar as part of the text control workflow. The configured value is checked before the workflow continues.
textControl.ShowMiniToolbar = MiniToolbarButton.LeftButton;
Console.WriteLine($"Show Mini Toolbar used by Text Control: {textControl.ShowMiniToolbar}");textControl.ShowMiniToolbar = MiniToolbarButton.LeftButton
Console.WriteLine($"Show Mini Toolbar used by Text Control: {textControl.ShowMiniToolbar}")