IconTextRelation Enumeration
- Namespace
TXTextControl.Windows. Forms. Ribbon
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXTextControl.Windows. Forms. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXTextControl.from the setup.Windows. Forms. dll
Description
Specifies the position of the text and the kind of icon relative to each other on objects of type RibbonButton and RibbonTextBox:
Syntax
public enum IconTextRelationPublic Enum IconTextRelationMembers
| Member | Value | Description |
|---|---|---|
| LargeIconLabeled | 8 | If the object is part of a RibbonGroup the item displayes its large icon above its text. If the item is an object of type RibbonButton and inserted as a drop-down item, the image is displayed horizontally before the text and the description text. |
| SmallIconLabeled | 4 | The item displayes its small icon horizontally before the text. |
| SmallIconUnlabeled | 2 | The item's small icon is displayed, but not its text. |
| NoIconLabeled | 1 | Only the item's text is displayed. |
Examples
The following example selects the No Icon Labeled value from the Icon Text Relation enumeration and uses it as a documented workflow choice.
TXTextControl.Windows.Forms.Ribbon.IconTextRelation value = TXTextControl.Windows.Forms.Ribbon.IconTextRelation.NoIconLabeled;
Console.WriteLine($"Using Icon Text Relation: {value}");Dim value As TXTextControl.Windows.Forms.Ribbon.IconTextRelation = TXTextControl.Windows.Forms.Ribbon.IconTextRelation.NoIconLabeled
Console.WriteLine($"Using Icon Text Relation: {value}")