Text Property
- Namespace
TXTextControl.Windows. Forms. Ribbon
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
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; }Public Property Text As StringExamples
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}");
}ribbonListViewItemDropDown.Text = "Quarterly results"
If Not String.IsNullOrWhiteSpace(ribbonListViewItemDropDown.Text) Then
Console.WriteLine($"Text: {ribbonListViewItemDropDown.Text}")
End If