JustificationMode
JustificationMode enumeration
指定文档的字符间距调整。 默认值为扩张
.
public enum JustificationMode
价值观
姓名 | 价值 | 描述 |
---|---|---|
Expand | 0 | 不压缩字符间距。 |
Compress | 1 | 压缩字符间距。 |
CompressKana | 2 | 压缩,使用假名音节表、平假名和片假名的规则。 |
例子
展示如何管理字符间距控制。
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");