---
layout: default-layout
needAutoGenerateSidebar: true
needGenerateH3Content: true
noTitleIndex: true
title: Dynamsoft Document Viewer API Reference - Enumeration EnumLineEnding
keywords: Documentation, Dynamsoft Document Viewer, API Reference, Enumeration EnumLineEnding
breadcrumbText: Enumeration EnumLineEnding
description: Dynamsoft Document Viewer Documentation API Reference Enumeration EnumLineEnding Page
permalink: /api/enumeration-type/enumlineending.html
---

# EnumLineEnding

Enumeration for line annotation's ending. Check [LineAnnotationOptions](https://www.dynamsoft.com/document-viewer/docs/api/interface/annotationinterface/lineannotationoptions.md). It is undefined if the annotation plugin is not installed.

```typescript
enum EnumLineEnding {
    NONE = "none", 
    OPEN = "open",
    OPEN_REVERSE = "openReverse",
    CLOSED = "closed",
    CLOSED_REVERSE = "closedReverse",
    BUTT = "butt",
    SLASH = "slash",
    SQUARE = "square",
    DIAMOND = "diamond",
    CIRCLE = "circle",
}
```

## Corresponding line endings

| EnumLineEnding | Corresponding line ending |
| -------------- | ------------------------- |
| NONE           | ![LineEnding None](/document-viewer/docs/assets/imgs/lineendNone.png)                          |
| OPEN           | ![LineEnding Open](/document-viewer/docs/assets/imgs/lineendOpen.png)    |
| OPEN_REVERSE   | ![LineEnding OpenR](/document-viewer/docs/assets/imgs/lineendOpenR.png)                          |
| CLOSED         | ![LineEnding Closed](/document-viewer/docs/assets/imgs/lineendClosed.png)                          |
| CLOSED_REVERSE | ![LineEnding ClosedR](/document-viewer/docs/assets/imgs/lineendClosedR.png)                          |
| BUTT           | ![LineEnding Butt](/document-viewer/docs/assets/imgs/lineendButt.png)                          |
| SLASH          | ![LineEnding Slash](/document-viewer/docs/assets/imgs/lineendSlash.png)                          |
| SQUARE         | ![LineEnding Square](/document-viewer/docs/assets/imgs/lineendSquare.png)                          |
| DIAMOND        | ![LineEnding Diamond](/document-viewer/docs/assets/imgs/lineendDiamond.png)                          |
| CIRCLE         | ![LineEnding Circle](/document-viewer/docs/assets/imgs/lineendCircle.png)                          |
