TX Text Control .NET Server

DrawComboboxEventArgs Class

Class|Introduced in 28.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Server.Core.dll
Install
dotnet add package TXTextControl.TextControl.Core.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.Server.dll from the setup.
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll
Inherits
  1. EventArgs
  2. DrawComboboxEventArgs

Description

The DrawComboboxEventArgs class contains information necessary to draw a combobox so that an end-user can select an item for a SelectionFormField. This class is used with the ServerVisualization.TextViewGenerator.DrawCombobox event.

Syntax

public class DrawComboboxEventArgs : EventArgs

Examples

The following example includes the bold value from a Draw Combobox Event Args object in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Bold: {drawComboboxEventArgs.Bold}");
Console.WriteLine("Draw Combobox Event Args is ready for use.");

Members

Properties

PropertyDescription
BoldReturns true, when the font of the combobox should be bold. Otherwise, it returns false.
FontNameReturns the name of the font that should be used to display the items of the combobox.
FontSizeReturns the pointsize (EM size), in pixels, of the combobox's font.
ItalicReturns true, when the font of the combobox should be italic. Otherwise, it returns false.
LocationGets the location of the combobox's text, in pixels.
SelectionFormFieldGets the SelectionFormField for which the combobox is displayed. It can be used to get the items of the combobox or to set a newly selected item.
SizeGets the size of the combobox's text, in pixels.