JustificationMode

JustificationMode enumeration

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

public enum JustificationMode

Values

NameValueDescription
Expand0Do not compress character spacing.
Compress1Compress character spacing.
CompressKana2Compress, using rules of the kana syllabaries, Hiragana and Katakana.

Examples

Shows how to manage character spacing control.

Document doc = new Document(MyDir + "Document.docx");

JustificationMode justificationMode = doc.JustificationMode;
if (justificationMode == JustificationMode.Expand)
    doc.JustificationMode = JustificationMode.Compress;

doc.Save(ArtifactsDir + "Document.SetJustificationMode.docx");

See Also