Outline

Font.Outline property

如果字体格式为轮廓,则为真。

public bool Outline { get; set; }

例子

展示如何创建格式化为大纲的文本。

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

// 设置轮廓标志以将文本的填充颜色更改为白色,并且
// 在文本的原始颜色中在每个字符周围留下细轮廓。
builder.Font.Outline = true;
builder.Font.Color = Color.Blue;
builder.Font.Size = 36;

builder.Writeln("This text has an outline.");

doc.Save(ArtifactsDir + "Font.Outline.docx");

也可以看看