Table of Contents

Constructor LayoutLine

Namespace
DocWright.Core.Rendering
Assembly
DocWright.Core.dll

LayoutLine(Twips, Twips, Twips, Twips, Twips, long, int, bool, bool, GlyphOrientation, bool, GlyphRunSourceSegment?, GlyphRunSourceSegment?)

Initializes a line.

public LayoutLine(Twips top, Twips height, Twips baseline, Twips left, Twips width, long paragraphKey, int lineIndex, bool isLastLine, bool isRightToLeft, GlyphOrientation orientation, bool continuesPreviousLine, GlyphRunSourceSegment? firstSegment, GlyphRunSourceSegment? lastSegment)

Parameters

top Twips

The top of the line box.

height Twips

The height of the line box; not negative.

baseline Twips

The baseline: a y, or an x when orientation is a quarter turn.

left Twips

The left edge of the measure the line was set in.

width Twips

The width of that measure; not negative.

paragraphKey long

The paragraph's node key (its DomNodeId value), or 0 when the line belongs to no document paragraph.

lineIndex int

The line's position among its paragraph's lines, from 0.

isLastLine bool

Whether this is the paragraph's last line.

isRightToLeft bool

Whether the paragraph runs right to left.

orientation GlyphOrientation

How the line's frame is turned on the page.

continuesPreviousLine bool

Whether this is the second segment of a line set around a floating object.

firstSegment GlyphRunSourceSegment?

The first document text the line holds, in document order, or null for a line with none.

lastSegment GlyphRunSourceSegment?

The last document text the line holds, in document order; null exactly when firstSegment is.

Exceptions

ArgumentOutOfRangeException

A size, the key or the index is negative.

ArgumentException

Only one of the two segments is given.