Table of Contents

Constructor MathSlotRegion

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

MathSlotRegion(Twips, Twips, Twips, Twips, Twips, Twips, long, IReadOnlyList<int>, IReadOnlyList<MathCaretStop>, bool)

Initializes a region.

public MathSlotRegion(Twips x, Twips y, Twips width, Twips height, Twips baseline, Twips fontSize, long sourceKey, IReadOnlyList<int> path, IReadOnlyList<MathCaretStop> stops, bool isEmpty)

Parameters

x Twips

The box's left.

y Twips

The box's top.

width Twips

The box's width.

height Twips

The box's height.

baseline Twips

The slot's baseline, from the page's top.

fontSize Twips

The size the slot's text is set at.

sourceKey long

The node key of the equation.

path IReadOnlyList<int>

The slot's path in the equation, as MathPosition.Path names it.

stops IReadOnlyList<MathCaretStop>

Where each offset of the slot (or of this piece of it) is, in increasing offset.

isEmpty bool

True when the slot holds nothing.

Exceptions

ArgumentNullException

path or stops is null.

ArgumentOutOfRangeException

width or height is negative.