Aspose::Words::Document::get_JustificationMode method
Document::get_JustificationMode method
Gets or sets the character spacing adjustment of a document.
Aspose::Words::Settings::JustificationMode Aspose::Words::Document::get_JustificationMode()
Examples
Shows how to manage character spacing control.
auto doc = System::MakeObject<Aspose::Words::Document>(get_MyDir() + u"Document.docx");
Aspose::Words::Settings::JustificationMode justificationMode = doc->get_JustificationMode();
if (justificationMode == Aspose::Words::Settings::JustificationMode::Expand)
{
doc->set_JustificationMode(Aspose::Words::Settings::JustificationMode::Compress);
}
doc->Save(get_ArtifactsDir() + u"Document.SetJustificationMode.docx");
See Also
- Enum JustificationMode
- Class Document
- Namespace Aspose::Words
- Library Aspose.Words for C++