MirrorIndents
ParagraphFormat.MirrorIndents property
获取或设置一个标志,指示左右缩进是否具有相同的宽度。
public bool MirrorIndents { get; set; }
例子
展示如何使左缩进和右缩进相同。
Document doc = new Document(MyDir + "Document.docx");
ParagraphFormat format = doc.FirstSection.Body.Paragraphs[0].ParagraphFormat;
format.MirrorIndents = true;
doc.Save(ArtifactsDir + "ParagraphFormat.MirrorIndents.docx");
也可以看看
- class ParagraphFormat
- 命名空间 Aspose.Words
- 部件 Aspose.Words