TX Text Control .NET for Windows Forms

IsDropDownArrowVisible Property

Property|Introduced in 28.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets a value indicating wheather a dropdown arrow is shown so that the user can select an item.

Syntax

public bool IsDropDownArrowVisible { get; set; }

Examples

The following example adds a country selector to a fillable form by using SelectionFormField.IsDropDownArrowVisible.

SelectionFormField selectionFormField = new(new[] { "Germany", "United Kingdom", "United States" }, 0) { Name = "Country" };
textControl.FormFields.Add(selectionFormField);

selectionFormField.IsDropDownArrowVisible = true;
if (selectionFormField.IsDropDownArrowVisible)
{
    Console.WriteLine("Selection Form Field: Is Drop Down Arrow Visible is enabled.");
}