FieldIndexFormat

FieldIndexFormat enumeration

Specifica la formattazione per ilFieldIndex campi in un documento.

public enum FieldIndexFormat

I valori

NomeValoreDescrizione
Template0Dal modello.
Classic1Classico.
Fancy2Fantasia.
Modern3Moderno.
Bulleted4Con elenco puntato.
Formal5Formale.
Simple6Semplice.

Esempi

Mostra come formattare i campi 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");

Guarda anche