JustificationMode

Document.JustificationMode property

Hämtar eller ställer in teckenavståndsjusteringen för ett dokument.

public JustificationMode JustificationMode { get; set; }

Exempel

Visar hur man hanterar teckenavståndskontroll.

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");

Se även