java.lang.Object
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 int | TEMPLATE = 0 | |
| From template. |
static final int | CLASSIC = 1 | |
| Classic. |
static final int | FANCY = 2 | |
| Fancy. |
static final int | MODERN = 3 | |
| Modern. |
static final int | BULLETED = 4 | |
| Bulleted. |
static final int | FORMAL = 5 | |
| Formal. |
static final int | SIMPLE = 6 | |
| Simple. |
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.