FieldIndexFormat

FieldIndexFormat enumeration

Gibt die Formatierung für dieFieldIndex Felder in einem Dokument.

public enum FieldIndexFormat

Werte

NameWertBeschreibung
Template0Aus der Vorlage.
Classic1Klassiker.
Fancy2Schick.
Modern3Modern.
Bulleted4Mit Aufzählungszeichen versehen.
Formal5Formell.
Simple6Einfach.

Beispiele

Zeigt, wie FieldIndex-Felder formatiert werden.

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");

Siehe auch