# TextLine

## Content

[**DsPdfJS API v9.1.3**](../README)

***

[DsPdfJS API](../globals) / TextLine

# Type Alias: TextLine

> **TextLine** = `object`

Represents a single line of text in a [Layout](../classes/Layout) object.

## Properties

### baselineOffset

> **baselineOffset**: `number`

The offset from line position to the Roman baseline, in graphic units.

***

### firstLineInParagraph

> **firstLineInParagraph**: `boolean`

Indicates whether the line is the first in the paragraph.

***

### glyphRuns

> **glyphRuns**: [`GlyphRun`](GlyphRun)[]

The array of glyph runs in the text line.

***

### height

> **height**: `number`

The height of the line, in graphic units.

***

### indent

> **indent**: `number`

The indent of the text line, in graphic units.

***

### lastLineInParagraph

> **lastLineInParagraph**: `boolean`

Indicates whether the line is the last in the paragraph.

***

### lineGap

> **lineGap**: `number`

The additional spacing before the text line, in graphic units.

***

### position

> **position**: `number`

The position of the text line along the flow direction (the Y coordinate of the line top for horizontal text), in graphic units.

***

### spacing

> **spacing**: `number`

The additional spacing after the text line, in graphic units.

***

### trailingWhitespaceLength

> **trailingWhitespaceLength**: `number`

The length (width or height) of the trailing whitespace, in graphic units.

***

### trimmed

> **trimmed**: `boolean`

Indicates whether the current line is trimmed.

***

### verticalBaselineOffset?

> `optional` **verticalBaselineOffset**: `number`

The offset from the Roman baseline to Ideographic centered baseline, in graphic units.
This property exists only for vertical flow direction.

***

### width

> **width**: `number`

The width of the line, in graphic units.
