# ServerTextControl.HyphenateWord Event

> Occurs, if a word does not fit on the line and must be hyphenated. This event occurs only, if the IsHyphenationEnabled property has been set to true. The event handler receives an argument of type HyphenateWordEventArgs containing data related to this event.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Event
- **Introduced:** 20.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > ServerTextControl.HyphenateWord Event
- **357 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/hyphenateword-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/hyphenateword-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/hyphenateword-event/llms-full.txt

---

### Description

Occurs, if a word does not fit on the line and must be hyphenated. This event occurs only, if the [IsHyphenationEnabled](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/ishyphenationenabled-property/llms-full.txt) property has been set to true. The event handler receives an argument of type [HyphenateWordEventArgs](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/hyphenatewordeventargs/llms-full.txt) containing data related to this event.

### Syntax

```csharp
public event HyphenateWordEventHandler HyphenateWord;
```

```vbnet
Public Event HyphenateWord As HyphenateWordEventHandler
```

### Examples

The following example records useful context when hyphenate word occurs.

```csharp
textControl.HyphenateWord += (sender, e) =>
{
    Console.WriteLine($"Divide Pos: {e.DividePos}");
};
```

```vbnet
AddHandler textControl.HyphenateWord,
    Sub(sender, e)
        Console.WriteLine($"Divide Pos: {e.DividePos}")
    End Sub
```

---

## Nearby

- **Previous:** [ServerTextControl.HypertextLinks Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/hypertextlinks-property/llms-full.txt)
- **Next:** [ServerTextControl.ImageCreated Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/imagecreated-event/llms-full.txt)
