FieldIndexFormat
FieldIndexFormat enumeration
Specifies the formatting for the FieldIndex
fields in a document.
public enum FieldIndexFormat
Values
Name | Value | Description |
---|---|---|
Template | 0 | From template. |
Classic | 1 | Classic. |
Fancy | 2 | Fancy. |
Modern | 3 | Modern. |
Bulleted | 4 | Bulleted. |
Formal | 5 | Formal. |
Simple | 6 | Simple. |
Examples
Shows how to formatting FieldIndex fields.
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");
See Also
- namespace Aspose.Words.Fields
- assembly Aspose.Words