---
title: "LineEnding"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf/lineending/"
product: "Aspose.PDF for Java API Reference"
description: "Enumerates the line ending styles to be used in drawing the line."
---

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

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

```
public enum LineEnding extends Enum < LineEnding >
```

Enumerates the line ending styles to be used in drawing the line.

## Fields

| Field | Description |
| --- | --- |
| [Butt](#Butt) | A short line at the endpoint perpendicular to the line itself. |
| [Circle](#Circle) | A circle filled with the annotation's interior color, if any. |
| [ClosedArrow](#ClosedArrow) | Two short lines meeting in an acute angle as in the OpenArrow style and connected by a third line to form a triangular closed arrowhead filled with the annotation's interior color, if any. |
| [Diamond](#Diamond) | A diamond shape filled with the annotation's interior color, if any. |
| [None](#None) | No line ending. |
| [OpenArrow](#OpenArrow) | Two short lines meeting in an acute angle to form an open arrowhead. |
| [RClosedArrow](#RClosedArrow) | A triangular closed arrowhead in the reverse direction from ClosedArrow. |
| [ROpenArrow](#ROpenArrow) | Two short lines in the reverse direction from OpenArrow. |
| [Slash](#Slash) | A short line at the endpoint approximately 30 degrees clockwise from perpendicular to the line itself. |
| [Square](#Square) | A square filled with the annotation's interior color, if any. |

## 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. |

### Butt {#Butt}
```
public static final LineEnding Butt
```

A short line at the endpoint perpendicular to the line itself.

### Circle {#Circle}
```
public static final LineEnding Circle
```

A circle filled with the annotation's interior color, if any.

### ClosedArrow {#ClosedArrow}
```
public static final LineEnding ClosedArrow
```

Two short lines meeting in an acute angle as in the OpenArrow style and connected by a third line to form a triangular closed arrowhead filled with the annotation's interior color, if any.

### Diamond {#Diamond}
```
public static final LineEnding Diamond
```

A diamond shape filled with the annotation's interior color, if any.

### None {#None}
```
public static final LineEnding None
```

No line ending.

### OpenArrow {#OpenArrow}
```
public static final LineEnding OpenArrow
```

Two short lines meeting in an acute angle to form an open arrowhead.

### RClosedArrow {#RClosedArrow}
```
public static final LineEnding RClosedArrow
```

A triangular closed arrowhead in the reverse direction from ClosedArrow.

### ROpenArrow {#ROpenArrow}
```
public static final LineEnding ROpenArrow
```

Two short lines in the reverse direction from OpenArrow.

### Slash {#Slash}
```
public static final LineEnding Slash
```

A short line at the endpoint approximately 30 degrees clockwise from perpendicular to the line itself.

### Square {#Square}
```
public static final LineEnding Square
```

A square filled with the annotation's interior color, if any.

### getByValue {#getByValue-int-}
```
public static LineEnding 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 LineEnding [] 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
