FieldIndexFormat
FieldOptions.FieldIndexFormat property
获取或设置FieldIndexFormat
代表 的格式FieldIndex
文档中的字段.
public FieldIndexFormat FieldIndexFormat { get; set; }
例子
演示如何设置 FieldIndex 字段的格式。
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Write("A");
builder.InsertBreak(BreakType.LineBreak);
builder.InsertField("XE \"A\"");
builder.Write("B");
builder.InsertField(" INDEX \\e \" · \" \\h \"A\" \\c \"2\" \\z \"1033\"", null);
doc.FieldOptions.FieldIndexFormat = FieldIndexFormat.Fancy;
doc.UpdateFields();
doc.Save(ArtifactsDir + "Field.SetFieldIndexFormat.docx");
也可以看看
- enum FieldIndexFormat
- class FieldOptions
- 命名空间 Aspose.Words.Fields
- 部件 Aspose.Words