OnHyphenateWord Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Raises the HyphenateWord event.
Syntax
protected virtual void OnHyphenateWord(HyphenateWordEventArgs e);Protected Overridable Sub OnHyphenateWord(e As HyphenateWordEventArgs)Parameters
| Parameter | Description |
|---|---|
| e | Specifies a HyphenateWordEventArgs object that contains the event data. |
Examples
The following example extends Text Control and performs custom processing when On Hyphenate Word is invoked.
class CustomTextControl : TextControl
{
protected override void OnHyphenateWord(HyphenateWordEventArgs e)
{
// Add custom processing before registered event handlers run.
base.OnHyphenateWord(e);
}
}Class CustomTextControl
Inherits TextControl
Protected Overrides Sub OnHyphenateWord(e As HyphenateWordEventArgs)
' Add custom processing before registered event handlers run.
MyBase.OnHyphenateWord(e)
End Sub
End Class