TX Text Control .NET Server

DrawCombobox Event

Event|Introduced in 28.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Server.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll

Description

Occurs when a combobox for a SelectionFormField must be drawn. The event handler receives an argument of type DrawComboboxEventArgs containing data related to this event.

Syntax

public event DrawComboboxEventHandler DrawCombobox;

Examples

The following example records useful context when draw combobox occurs.

textViewGenerator.DrawCombobox += (sender, e) =>
{
    Console.WriteLine($"Bold: {e.Bold}");
};