JustificationMode

JustificationMode enumeration

指定文档的字符间距调整。 默认值为扩张.

public enum JustificationMode

价值观

姓名价值描述
Expand0不压缩字符间距。
Compress1压缩字符间距。
CompressKana2压缩,使用假名音节表、平假名和片假名的规则。

例子

展示如何管理字符间距控制。

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

也可以看看