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

This sample code shows how to set the DisplayMode property of a RibbonTextBox.

TXTextControl.Windows.Forms.Ribbon.RibbonTextBox MyRibbonTextBox = new TXTextControl.Windows.Forms.Ribbon.RibbonTextBox();
MyRibbonTextBox.DisplayMode = TXTextControl.Windows.Forms.Ribbon.IconTextRelation.SmallIconLabeled; // Is also the default value of the display settings.

//Second possibility 
//MyRibbonTextBox.DisplayMode = TXTextControl.Windows.Forms.Ribbon.IconTextRelation.LargeIconLabeled

//Third possibility 
//MyRibbonTextBox.DisplayMode = TXTextControl.Windows.Forms.Ribbon.IconTextRelation.NoIconLabeled

//Fourth possibility 
//MyRibbonTextBox.DisplayMode = TXTextControl.Windows.Forms.Ribbon.IconTextRelation.SmallIconUnlabeled