public class FieldIndexFormat
extends java.lang.Object
FieldIndex fields in a document.
Examples:
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");
| Modifier and Type | Field and Description |
|---|---|
static int |
BULLETED
Bulleted.
|
static int |
CLASSIC
Classic.
|
static int |
FANCY
Fancy.
|
static int |
FORMAL
Formal.
|
static int |
length |
static int |
MODERN
Modern.
|
static int |
SIMPLE
Simple.
|
static int |
TEMPLATE
From template.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
fromName(java.lang.String fieldIndexFormatName) |
static java.lang.String |
getName(int fieldIndexFormat) |
static int[] |
getValues() |
static java.lang.String |
toString(int fieldIndexFormat) |
public static int TEMPLATE
public static int CLASSIC
public static int FANCY
public static int MODERN
public static int BULLETED
public static int FORMAL
public static int SIMPLE
public static int length