AddSpaceBetweenFarEastAndAlpha

ParagraphFormat.AddSpaceBetweenFarEastAndAlpha property

获取或设置一个标志,指示当前段落中拉丁文本的regions 和东亚文本区域之间的字符间距是否自动调整。

public bool AddSpaceBetweenFarEastAndAlpha { get; set; }

例子

演示如何在文档中插入段落。

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

Font font = builder.Font;
font.Size = 16;
font.Bold = true;
font.Color = Color.Blue;
font.Name = "Arial";
font.Underline = Underline.Dash;

ParagraphFormat paragraphFormat = builder.ParagraphFormat;
paragraphFormat.FirstLineIndent = 8;
paragraphFormat.Alignment = ParagraphAlignment.Justify;
paragraphFormat.AddSpaceBetweenFarEastAndAlpha = true;
paragraphFormat.AddSpaceBetweenFarEastAndDigit = true;
paragraphFormat.KeepTogether = true;

// “Writeln”方法在附加文本后结束段落
// 然后开始一个新行,添加一个新段落。
builder.Writeln("Hello world!");

Assert.True(builder.CurrentParagraph.IsEndOfDocument);

也可以看看