TX Text Control .NET for Windows Forms

Text 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

Gets or sets the RibbonListViewItem's text

Syntax

public string Text { get; set; }

Examples

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

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