TX Text Control .NET for Windows Forms

Text Property

Property|Introduced in 29.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

Gets or sets the text that is displayed to the left of the drop-down button, if the RibbonListViewItemDropDown.ShowText property is set to true. The default value is an empty string.

Syntax

public string Text { get; set; }

Examples

The following example uses RibbonListViewItemDropDown.Text to replace the ribbon list view item drop down's displayed content. The configured value is checked before the workflow continues.

ribbonListViewItemDropDown.Text = "Quarterly results";
if (!string.IsNullOrWhiteSpace(ribbonListViewItemDropDown.Text))
{
    Console.WriteLine($"Text: {ribbonListViewItemDropDown.Text}");
}