Class MathSlotRegion
Where a slot of an equation was laid out (Phase 166): its box, its baseline, and where each of its offsets is, so a consumer can draw a caret in an equation and hit-test a point inside one. It draws nothing. Emitted with source references only, after the equation's MathRegion, one per slot laid out (a slot a structure hides, such as a square root's degree, has none; a line of an inline equation broken over lines has one per piece).
public sealed class MathSlotRegion : ILayoutPrimitive
- Inheritance
-
MathSlotRegion
- Implements
- Inherited Members
Constructors
- MathSlotRegion(Twips, Twips, Twips, Twips, Twips, Twips, long, IReadOnlyList<int>, IReadOnlyList<MathCaretStop>, bool)
Initializes a region.
Properties
- Baseline
Gets the slot's baseline, from the page's top.
- FontSize
Gets the size the slot's text is set at (a script's is smaller).
- Height
Gets the box's height.
- IsEmpty
Gets whether the slot holds nothing (a consumer may draw Word's placeholder box over it).
- Path
Gets the slot's path in the equation: the line's index, then pairs of element and slot indexes.
- SourceKey
Gets the node key of the equation.
- Stops
Gets where each offset is, in increasing offset; the first and last are the box's start and end.
- Width
Gets the box's width.
- X
Gets the box's left.
- Y
Gets the box's top.
Methods
- WithBounds(Twips, Twips, Twips, Twips, Twips)
The same region at another place: what a turned frame maps it to; the stops move with its left.