com.aspose.words
Class FieldIndexFormat

java.lang.Object
    extended by com.aspose.words.FieldIndexFormat

public class FieldIndexFormat 
extends java.lang.Object

Utility class containing constants. Specifies the formatting for the FieldIndex fields in a document.

Example:

Shows how to formatting FieldIndex fields.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.write("A");
builder.insertBreak(BreakType.LINE_BREAK);
builder.insertField("XE \"A\"");
builder.write("B");

builder.insertField(" INDEX \\e \" ยท \" \\h \"A\" \\c \"2\" \\z \"1033\"", null);

doc.getFieldOptions().setFieldIndexFormat(FieldIndexFormat.FANCY);
doc.updateFields();

doc.save(getArtifactsDir() + "Field.SetFieldIndexFormat.docx");

Field Summary
static final intTEMPLATE = 0
          From template.
static final intCLASSIC = 1
          Classic.
static final intFANCY = 2
          Fancy.
static final intMODERN = 3
          Modern.
static final intBULLETED = 4
          Bulleted.
static final intFORMAL = 5
          Formal.
static final intSIMPLE = 6
          Simple.
 

Field Detail

TEMPLATE = 0

public static final int TEMPLATE
From template.

CLASSIC = 1

public static final int CLASSIC
Classic.

FANCY = 2

public static final int FANCY
Fancy.

MODERN = 3

public static final int MODERN
Modern.

BULLETED = 4

public static final int BULLETED
Bulleted.

FORMAL = 5

public static final int FORMAL
Formal.

SIMPLE = 6

public static final int SIMPLE
Simple.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.