OnDocumentSizeChanged 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 DocumentSizeChanged event.
Syntax
protected virtual void OnDocumentSizeChanged(DocumentSizeChangedEventArgs e);Protected Overridable Sub OnDocumentSizeChanged(e As DocumentSizeChangedEventArgs)Parameters
| Parameter | Description |
|---|---|
| e | Specifies a ServerVisualization.DocumentSizeChangedEventArgs object that contains the event data. |
Examples
The following example extends Text View Generator and performs custom processing when On Document Size Changed is invoked.
class CustomTextViewGenerator : TXTextControl.ServerVisualisation.TextViewGenerator
{
protected override void OnDocumentSizeChanged(TXTextControl.ServerVisualisation.DocumentSizeChangedEventArgs e)
{
// Add custom processing before registered event handlers run.
base.OnDocumentSizeChanged(e);
}
}Class CustomTextViewGenerator
Inherits TXTextControl.ServerVisualisation.TextViewGenerator
Protected Overrides Sub OnDocumentSizeChanged(e As TXTextControl.ServerVisualisation.DocumentSizeChangedEventArgs)
' Add custom processing before registered event handlers run.
MyBase.OnDocumentSizeChanged(e)
End Sub
End Class