OnDrawingCreated Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. dll
Description
Raises the DrawingCreated event.
Syntax
protected virtual void OnDrawingCreated(DrawingEventArgs e);Protected Overridable Sub OnDrawingCreated(e As DrawingEventArgs)Parameters
| Parameter | Description |
|---|---|
| e | Specifies an DrawingEventArgs object that contains the event data. |
Examples
The following example extends Server Text Control and performs custom processing when On Drawing Created is invoked.
class CustomServerTextControl : ServerTextControl
{
protected override void OnDrawingCreated(TXTextControl.DataVisualization.DrawingEventArgs e)
{
// Add custom processing before registered event handlers run.
base.OnDrawingCreated(e);
}
}Class CustomServerTextControl
Inherits ServerTextControl
Protected Overrides Sub OnDrawingCreated(e As TXTextControl.DataVisualization.DrawingEventArgs)
' Add custom processing before registered event handlers run.
MyBase.OnDrawingCreated(e)
End Sub
End Class