FieldIndexFormat

FieldIndexFormat enumeration

Anger formateringen förFieldIndex fält i ett dokument.

public enum FieldIndexFormat

Värderingar

namnVärdeBeskrivning
Template0Från mall.
Classic1Klassisk.
Fancy2Lust.
Modern3Modern.
Bulleted4Punktmarkerad.
Formal5Formell.
Simple6Enkel.

Exempel

Visar hur man formaterar FieldIndex-fält.

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

Se även