Constructor LayoutLine
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
topTwipsThe top of the line box.
heightTwipsThe height of the line box; not negative.
baselineTwipsThe baseline: a y, or an x when
orientationis a quarter turn.leftTwipsThe left edge of the measure the line was set in.
widthTwipsThe width of that measure; not negative.
paragraphKeylongThe paragraph's node key (its
DomNodeIdvalue), or 0 when the line belongs to no document paragraph.lineIndexintThe line's position among its paragraph's lines, from 0.
isLastLineboolWhether this is the paragraph's last line.
isRightToLeftboolWhether the paragraph runs right to left.
orientationGlyphOrientationHow the line's frame is turned on the page.
continuesPreviousLineboolWhether this is the second segment of a line set around a floating object.
firstSegmentGlyphRunSourceSegment?The first document text the line holds, in document order, or null for a line with none.
lastSegmentGlyphRunSourceSegment?The last document text the line holds, in document order; null exactly when
firstSegmentis.
Exceptions
- ArgumentOutOfRangeException
A size, the key or the index is negative.
- ArgumentException
Only one of the two segments is given.