TX Text Control .NET for Windows Forms

DisplayMode Property

Property|Introduced in 24.0
Namespace
TXTextControl.Windows.Forms.Ribbon
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Sets the RibbonTextBox's superordinate display settings and gets its corresponding text icon relation rendering to the current group's width. The default value is IconTextRelation.SmallIconLabeled.

Syntax

public IconTextRelation DisplayMode { get; set; }

Examples

The following example uses RibbonTextBox.DisplayMode to configure display mode as part of the ribbon text box workflow. The change is then applied to the active document or user interface.

ribbonTextBox.DisplayMode = TXTextControl.Windows.Forms.Ribbon.IconTextRelation.NoIconLabeled;
ribbonTextBox.Update();