---
title: "CaptionPosition"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf/captionposition/"
product: "Aspose.PDF for Java API Reference"
description: "Enumeration of the annotation's caption positioning."
---

**Inheritance:**
java.lang.Object, java.lang.Enum < CaptionPosition > com.aspose.pdf.CaptionPosition, java.lang.Enum < CaptionPosition >, com.aspose.pdf.CaptionPosition

**All Implemented Interfaces:**
Serializable, Comparable < CaptionPosition >

```
public enum CaptionPosition extends Enum < CaptionPosition >
```

Enumeration of the annotation's caption positioning.

## Fields

| Field | Description |
| --- | --- |
| [Inline](#Inline) | The caption will be centered inside the line (default value). |
| [Top](#Top) | The caption will be on top of the line. |

## Methods

| Method | Description |
| --- | --- |
| [getByValue](#getByValue-int-) |  |
| [getValue](#getValue--) |  |
| [valueOf](#valueOf-java.lang.String-) | Returns the enum constant of this type with the specified name. |
| [values](#values--) | Returns an array containing the constants of this enum type, in the order they are declared. |

### Inline {#Inline}
```
public static final CaptionPosition Inline
```

The caption will be centered inside the line (default value).

### Top {#Top}
```
public static final CaptionPosition Top
```

The caption will be on top of the line.

### getByValue {#getByValue-int-}
```
public static CaptionPosition getByValue(int value)
```



**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  |  |

### getValue {#getValue--}
```
public int getValue()
```



### valueOf {#valueOf-java.lang.String-}
Returns the enum constant of this type with the specified name.

### values {#values--}
```
public static CaptionPosition [] values()
```

Returns an array containing the constants of this enum type, in the order they are declared.

**Returns:**
an array containing the constants of this enum type, in the order they are declared
