TextMiniToolbar Class
- Namespace
TXTextControl.WPF
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXTextControl.WPF. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXTextControl.from the setup.WPF. dll
- Inherits
- Popup
- Mini
Toolbar - Text
Mini Toolbar
- Implements
- IComponent
Connector
Description
The WPF.TextMiniToolbar class is a mini toolbar that appears when ShowMiniToolbar property is set to MiniToolbarButton.LeftButton, MiniToolbarButton.RightButton or MiniToolbarButton.LeftButton | MiniToolbarButton.RightButton, the left or right mouse button is released and the current context is selected text (ContextMenuLocation.TextSelection), text at the input position (ContextMenuLocation.TextInputPosition) or an input position inside a table (ContextMenuLocation.Table). The FrameworkElement.FindName method can be used to get a certain item and manipulate, move or delete it during the WPF.TextControl.TextMiniToolbarInitialized event. An TextMiniToolbar is inherited from the WPF.MiniToolbar class. The following describes only the properties, methods and events defined through the TextMiniToolbar class.
Syntax
public class TextMiniToolbar : MiniToolbarPublic Class TextMiniToolbar
Inherits MiniToolbarExamples
The following example includes the container value from a Text Mini Toolbar object in application diagnostics. The created object is then available to the surrounding document workflow.
Console.WriteLine($"Container: {textMiniToolbar.Container}");
Console.WriteLine("Text Mini Toolbar is ready for use.");Console.WriteLine($"Container: {textMiniToolbar.Container}")
Console.WriteLine("Text Mini Toolbar is ready for use.")Members
Enumerations
| Enumeration | Description |
|---|---|
| RibbonItem | Each RibbonItem represents an item in a WPF.TextMiniToolbar. The corresponding string of a RibbonItem is the same as the item's Name property. The string can be used with the FrameworkElement.FindName method to get the item and manipulate, move or delete it. |