# HyphenateWordEventArgs Class

> The HyphenateWordEventArgs class provides data for the TextControl.HyphenateWord, ServerTextControl.HyphenateWord and WPF.TextControl.HyphenateWord events.

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

---

### Description

The HyphenateWordEventArgs class provides data for the [TextControl.HyphenateWord](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/hyphenateword-event/llms-full.txt), [ServerTextControl.HyphenateWord](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/hyphenateword-event/llms-full.txt) and [WPF.TextControl.HyphenateWord](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/hyphenateword-event/llms-full.txt) events.

### Syntax

```csharp
public class HyphenateWordEventArgs : EventArgs
```

```vbnet
Public Class HyphenateWordEventArgs
    Inherits EventArgs
```

### Examples

The following example uses `HyphenateWordEventArgs.DividePos` while handling `HyphenateWord`.

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

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

---

## In This Section

- [HyphenateWordEventArgs.Culture Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/hyphenatewordeventargs/culture-property/llms-full.txt): Gets the culture of the word to hyphenate.
- [HyphenateWordEventArgs.DividePos Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/hyphenatewordeventargs/dividepos-property/llms-full.txt): Gets or sets the position at which the word should be divided. When a spellchecker has been connected with the SpellChecker property, this value has been calculated through the spellchecker. Otherwise it is zero. A TextControl uses this position to divide the word, when it is less or equal then MaxDividePos.
- [HyphenateWordEventArgs.MaxDividePos Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/hyphenatewordeventargs/maxdividepos-property/llms-full.txt): Gets the maximum dividing position. For example, when this value is 3, the first 3 characters of the word is the maximum part of the word which fit on the line.
- [HyphenateWordEventArgs.Word Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/hyphenatewordeventargs/word-property/llms-full.txt): Gets the word to hyphenate.

---

## Nearby

- **Previous:** [HypertextLinkEventArgs.HypertextLink Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/hypertextlinkeventargs/hypertextlink-property/llms-full.txt)
- **Next:** [HyphenateWordEventArgs.Culture Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/hyphenatewordeventargs/culture-property/llms-full.txt)
