OnDrawCombobox Method
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
Description
Raises the DrawCombobox event.
Syntax
protected virtual void OnDrawCombobox(DrawComboboxEventArgs e);Protected Overridable Sub OnDrawCombobox(e As DrawComboboxEventArgs)Parameters
| Parameter | Description |
|---|---|
| e | Specifies a ServerVisualization.DrawComboboxEventArgs object that contains the event data. |
Examples
The following example extends Text View Generator and performs custom processing when On Draw Combobox is invoked.
class CustomTextViewGenerator : TXTextControl.ServerVisualisation.TextViewGenerator
{
protected override void OnDrawCombobox(TXTextControl.ServerVisualisation.DrawComboboxEventArgs e)
{
// Add custom processing before registered event handlers run.
base.OnDrawCombobox(e);
}
}Class CustomTextViewGenerator
Inherits TXTextControl.ServerVisualisation.TextViewGenerator
Protected Overrides Sub OnDrawCombobox(e As TXTextControl.ServerVisualisation.DrawComboboxEventArgs)
' Add custom processing before registered event handlers run.
MyBase.OnDrawCombobox(e)
End Sub
End Class