# HyphenateWordEventArgs Object

> The event argument for a word-hyphenation related event.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Object
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > HyphenateWordEventArgs Object
- **349 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/hyphenatewordeventargs/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/hyphenatewordeventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/hyphenatewordeventargs/llms-full.txt

---

### Description

The event argument for a word-hyphenation related event.

### Syntax

```javascript
{
   word: <string>,
   maxDividePos: <Number>,
   dividePos: <Number>
}
```

### Examples

The following example demonstrates `HyphenateWordEventArgs` in a practical document-editing workflow. The event argument for a word-hyphenation related event.

```javascript
function handleHyphenateWord(args) {
    console.log("word:", args.word);
    console.log("max divide pos:", args.maxDividePos);
    console.log("divide pos:", args.dividePos);
}
```

---

## In This Section

- [Javascript: HyphenateWordEventArgs.dividePos Property](https://docs.textcontrol.com/ds-server/reference/javascript/hyphenatewordeventargs/dividepos-property/llms-full.txt): The position at which the word should be divided.
- [Javascript: HyphenateWordEventArgs.maxDividePos Property](https://docs.textcontrol.com/ds-server/reference/javascript/hyphenatewordeventargs/maxdividepos-property/llms-full.txt): The maximum dividing position.
- [Javascript: HyphenateWordEventArgs.word Property](https://docs.textcontrol.com/ds-server/reference/javascript/hyphenatewordeventargs/word-property/llms-full.txt): The word to hyphenate.

---

## Nearby

- **Previous:** [HyphenateWordCallback Function](https://docs.textcontrol.com/ds-server/reference/javascript/hyphenatewordcallback/llms-full.txt)
- **Next:** [Javascript: HyphenateWordEventArgs.dividePos Property](https://docs.textcontrol.com/ds-server/reference/javascript/hyphenatewordeventargs/dividepos-property/llms-full.txt)
