FieldIndexFormat

FieldIndexFormat enumeration

Especifica el formato para elFieldIndex campos en un documento.

public enum FieldIndexFormat

Valores

NombreValorDescripción
Template0De plantilla.
Classic1Clásico.
Fancy2Elegante.
Modern3Moderno.
Bulleted4Con viñetas.
Formal5Formal.
Simple6Simple.

Ejemplos

Muestra cómo formatear los campos 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");

Ver también