DrawComboboxEventArgs Class
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. Core. SDK
- Assembly
TXTextControl.Server. Core. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. Core. SDK TXTextControl.from the setup.Server. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
- Inherits
- Event
Args - Draw
Combobox Event Args
- Event
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 : EventArgsPublic Class DrawComboboxEventArgs
Inherits EventArgsExamples
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.");Console.WriteLine($"Bold: {drawComboboxEventArgs.Bold}")
Console.WriteLine("Draw Combobox Event Args is ready for use.")Members
Properties
| Property | Description |
|---|---|
| Bold | Returns true, when the font of the combobox should be bold. Otherwise, it returns false. |
| FontName | Returns the name of the font that should be used to display the items of the combobox. |
| FontSize | Returns the pointsize (EM size), in pixels, of the combobox's font. |
| Italic | Returns true, when the font of the combobox should be italic. Otherwise, it returns false. |
| Location | Gets the location of the combobox's text, in pixels. |
| SelectionFormField | Gets 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. |
| Size | Gets the size of the combobox's text, in pixels. |