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; }
Public Property DisplayMode() As IconTextRelation

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
Dim MyRibbonTextBox As TXTextControl.Windows.Forms.Ribbon.RibbonTextBox = 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 
Dim MyRibbonTextBox As TXTextControl.Windows.Forms.Ribbon.RibbonTextBox = New TXTextControl.Windows.Forms.Ribbon.RibbonTextBox()
MyRibbonTextBox.DisplayMode = TXTextControl.Windows.Forms.Ribbon.IconTextRelation.SmallIconLabeled 'Is also the default value of the display settings.

'Third possibility 
Dim MyRibbonTextBox As TXTextControl.Windows.Forms.Ribbon.RibbonTextBox = New TXTextControl.Windows.Forms.Ribbon.RibbonTextBox()
MyRibbonTextBox.DisplayMode = TXTextControl.Windows.Forms.Ribbon.IconTextRelation.SmallIconLabeled 'Is also the default value of the display settings.

'Fourth possibility 
Dim MyRibbonTextBox As TXTextControl.Windows.Forms.Ribbon.RibbonTextBox = New TXTextControl.Windows.Forms.Ribbon.RibbonTextBox()
MyRibbonTextBox.DisplayMode = TXTextControl.Windows.Forms.Ribbon.IconTextRelation.SmallIconLabeled 'Is also the default value of the display settings.