Aspose::Words::Document::set_JustificationMode method
Document::set_JustificationMode method
Sets the character spacing adjustment of a document.
void Aspose::Words::Document::set_JustificationMode(Aspose::Words::Settings::JustificationMode value)
Examples
Shows how to manage character spacing control.
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
- Class Document
- Namespace Aspose::Words
- Library Aspose.Words for C++