## JustificationMode enum


Specifies the character spacing adjustment for a document. The default value is **Expand**.

```cpp
enum class JustificationMode
```

### Values

| Name | Value | Description |
| --- | --- | --- |
| Expand | 0 | Do not compress character spacing. |
| Compress | 1 | Compress character spacing. |
| CompressKana | 2 | Compress, using rules of the kana syllabaries, Hiragana and Katakana. |


## Examples



Shows how to manage character spacing control. 
```cpp
auto doc = System::MakeObject<Aspose::Words::Document>(System::String(get_MyDir() + u"Document.docx"));

Aspose::Words::Settings::JustificationMode justificationMode = doc->get_JustificationMode();
if (justificationMode == JustificationMode::Expand)
{
    doc->set_JustificationMode(JustificationMode::Compress);
}

doc->Save(get_ArtifactsDir() + u"Document.SetJustificationMode.docx");
```

## See Also

* Namespace [Aspose::Words::Settings](../)
* Library [Aspose.Words for C++](../../)
