WordWrap

ParagraphFormat.WordWrap property

如果此属性是错误的,单词中间的拉丁文本可以按 当前段落换行。否则,拉丁文本将按整个单词换行。

public bool WordWrap { get; set; }

例子

展示如何设置亚洲字体的特殊属性。

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

ParagraphFormat format = doc.FirstSection.Body.FirstParagraph.ParagraphFormat;
format.FarEastLineBreakControl = true;
format.WordWrap = false;
format.HangingPunctuation = true;

doc.Save(ArtifactsDir + "ParagraphFormat.AsianTypographyProperties.docx");

也可以看看