
**Inheritance:**
java.lang.Object
```
public class FieldIndexFormat
```

Specifies the formatting for the [FieldIndex](../../com.aspose.words/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");
 
```
## Fields

| Field | Description |
| --- | --- |
| [BULLETED](#BULLETED) | Bulleted. |
| [CLASSIC](#CLASSIC) | Classic. |
| [FANCY](#FANCY) | Fancy. |
| [FORMAL](#FORMAL) | Formal. |
| [MODERN](#MODERN) | Modern. |
| [SIMPLE](#SIMPLE) | Simple. |
| [TEMPLATE](#TEMPLATE) | From template. |
| [length](#length) |  |
## Methods

| Method | Description |
| --- | --- |
| [fromName(String fieldIndexFormatName)](#fromName-java.lang.String) |  |
| [getName(int fieldIndexFormat)](#getName-int) |  |
| [getValues()](#getValues) |  |
| [toString(int fieldIndexFormat)](#toString-int) |  |
### BULLETED {#BULLETED}
```
public static int BULLETED
```


Bulleted.

### CLASSIC {#CLASSIC}
```
public static int CLASSIC
```


Classic.

### FANCY {#FANCY}
```
public static int FANCY
```


Fancy.

### FORMAL {#FORMAL}
```
public static int FORMAL
```


Formal.

### MODERN {#MODERN}
```
public static int MODERN
```


Modern.

### SIMPLE {#SIMPLE}
```
public static int SIMPLE
```


Simple.

### TEMPLATE {#TEMPLATE}
```
public static int TEMPLATE
```


From template.

### length {#length}
```
public static int length
```


### fromName(String fieldIndexFormatName) {#fromName-java.lang.String}
```
public static int fromName(String fieldIndexFormatName)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| fieldIndexFormatName | java.lang.String |  |

**Returns:**
int
### getName(int fieldIndexFormat) {#getName-int}
```
public static String getName(int fieldIndexFormat)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| fieldIndexFormat | int |  |

**Returns:**
java.lang.String
### getValues() {#getValues}
```
public static int[] getValues()
```




**Returns:**
int[]
### toString(int fieldIndexFormat) {#toString-int}
```
public static String toString(int fieldIndexFormat)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| fieldIndexFormat | int |  |

**Returns:**
java.lang.String
