TX Text Control .NET for Windows Forms

IconTextRelation Enumeration

Enumeration
Namespace
TXTextControl.Windows.Forms.Ribbon
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Windows.Forms.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.Windows.Forms.dll from the setup.

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 IconTextRelation

Members

MemberValueDescription
LargeIconLabeled8If 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.
SmallIconLabeled4The item displayes its small icon horizontally before the text.
SmallIconUnlabeled2The item's small icon is displayed, but not its text.
NoIconLabeled1Only 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}");