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 RibbonButton's superordinate display settings and gets its corresponding text icon relation rendering to the current group's width.

Syntax

public IconTextRelation DisplayMode { get; set; }

Examples

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

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