# DrawComboboxEventArgs Class

> 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.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 28.0
- **Namespace:** `TXTextControl.ServerVisualisation`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Server.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Inherits:** `System.EventArgs`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.ServerVisualization > DrawComboboxEventArgs Class
- **824 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawcomboboxeventargs/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawcomboboxeventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawcomboboxeventargs/llms-full.txt

---

### Description

The DrawComboboxEventArgs class contains information necessary to draw a combobox so that an end-user can select an item for a [SelectionFormField](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/selectionformfield/llms-full.txt). This class is used with the [ServerVisualization.TextViewGenerator.DrawCombobox](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/drawcombobox-event/llms-full.txt) event.

### Syntax

```csharp
public class DrawComboboxEventArgs : EventArgs
```

```vbnet
Public Class DrawComboboxEventArgs
    Inherits 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.

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

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

---

## In This Section

- [DrawComboboxEventArgs.Bold Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawcomboboxeventargs/bold-property/llms-full.txt): Returns true, when the font of the combobox should be bold. Otherwise, it returns false.
- [DrawComboboxEventArgs.FontName Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawcomboboxeventargs/fontname-property/llms-full.txt): Returns the name of the font that should be used to display the items of the combobox.
- [DrawComboboxEventArgs.FontSize Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawcomboboxeventargs/fontsize-property/llms-full.txt): Returns the pointsize (EM size), in pixels, of the combobox's font.
- [DrawComboboxEventArgs.Italic Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawcomboboxeventargs/italic-property/llms-full.txt): Returns true, when the font of the combobox should be italic. Otherwise, it returns false.
- [DrawComboboxEventArgs.Location Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawcomboboxeventargs/location-property/llms-full.txt): Gets the location of the combobox's text, in pixels.
- [DrawComboboxEventArgs.SelectionFormField Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawcomboboxeventargs/selectionformfield-property/llms-full.txt): 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.
- [DrawComboboxEventArgs.Size Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawcomboboxeventargs/size-property/llms-full.txt): Gets the size of the combobox's text, in pixels.

---

## Nearby

- **Previous:** [DocumentSizeChangedEventArgs.Width Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/documentsizechangedeventargs/width-property/llms-full.txt)
- **Next:** [DrawComboboxEventArgs.Bold Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawcomboboxeventargs/bold-property/llms-full.txt)
