FieldIndexFormat

FieldIndexFormat enumeration

Specifies the formatting for the FieldIndex fields in a document.

public enum FieldIndexFormat

Values

NameValueDescription
Template0From template.
Classic1Classic.
Fancy2Fancy.
Modern3Modern.
Bulleted4Bulleted.
Formal5Formal.
Simple6Simple.

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