Table of Contents

Class LayoutMark

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

A non-printing mark: where a paragraph or a forced break ends a line, or where a tab's gap is. It draws nothing.

public sealed class LayoutMark : ILayoutPrimitive
Inheritance
LayoutMark
Implements
Inherited Members

Remarks

Layout emits one when formatting marks are on (LayoutEngine.EmitFormattingMarks, LayoutSessionOptions.EmitFormattingMarks), in every context it lays text out in, after the line's other primitives. X is the pen position layout drew to: for a paragraph or a break, the end of the line's text after its trailing spaces, where Word puts the mark; for a tab, the start of the gap, which spans Width. A page or column break's Width is the rest of the line's measure. Spaces and no-break spaces are not marks: they are in the glyph runs' text, with their advances.

In a turned frame X and Baseline are the page point the mark's point maps to and Orientation the frame's turn.

Renderers ignore it: a PDF or an image is the same bytes with or without it.

Constructors

LayoutMark(LayoutMarkKind, Twips, Twips, Twips, Twips, long, bool, GlyphOrientation)

Initializes a mark.

Properties

Baseline

Gets the line's baseline.

FontSize

Gets the size of the text the mark belongs to.

IsRightToLeft

Gets whether the paragraph runs right to left.

Kind

Gets what the mark stands for.

Orientation

Gets how the mark's frame is turned on the page.

ParagraphKey

Gets the paragraph's node key, or 0.

Width

Gets what the mark spans: a tab's gap, the rest of the measure for a page or column break; else zero.

X

Gets where the mark is along the line.