| DefaultBaseline { get; } |
Baseline of a line holding one character in the view’s own style. |
| DefaultLineHeight { get; } |
Height of a line holding one character in the view’s own style, independent of content. |
| Document { get; } |
Document whose text the view presents. |
| Extensions { get; } |
Extension pipeline applied when visible lines are laid out. |
| ExtentHeight { get; } |
Height of the whole document in view coordinates. |
| ExtentWidth { get; } |
Width of the widest line laid out so far, in view coordinates. Lines that have not been laid out yet count as empty, so the value grows as more of the document is reached. |
| Layers { get; } |
Draw order of the view. Replacing a built-in anchor hands its painting to the caller. |
| ScrollOffset { get; } |
Scroll offset of the view in document coordinates. |
| TextViewportBounds { get; } |
Area the text is drawn into, excluding chrome. |
| VisibleTextLines { get; } |
Lines currently laid out, in document order, with their document-space positions. |
| event DocumentChanged |
Raised after the document content changed or the document was replaced. |
| event LineConstructionStarting |
Raised before the visible lines are built, carrying the first line number. Extensions that carry state across lines check it here, before any line is reused. |
| event LinesChanged |
Raised after the visible lines were built. |
| event ScrollOffsetChanged |
Raised after ScrollOffset changed. |
| FindLineByY(…) |
Line number whose row contains the document-space documentY. |
| GetLineExtent(…) |
Coordinates of the whole line holding the offset, answered without laying it out. Null where there is no line, or where the view wraps and so measures a line in rows rather than in x. |
| GetLineLayout(…) |
The laid-out line holding the offset, laying it out when it is outside the viewport. Null when there is no line to lay out. A line long enough to be cut into slices answers with the slice the offset falls in. The layout follows the current viewport, so a wrapping view answers meaningfully only once it has been given a width. |
| GetLineY(…) |
Document-space top of lineNumber. |
| InsertLayer(…) |
Inserts a layer relative to a built-in anchor. |
| InvalidateLayer(…) |
Discards what the anchor group drew and repaints it, leaving every line layout in place. A host that does not cache rendered layers may repaint the whole stack instead. |
| InvalidateTextRange(…) |
Rebuilds only the lines overlapping the document range, leaving every other cached line in place. Safe to call while lines are being built; the rebuild then runs once that finishes. |
| InvalidateTextView() |
Re-runs registered classifiers, generators, projections, and layers. |
| MakeVisible(…) |
Scrolls the smallest amount that brings the document-space rectangle into view. A rectangle taller or wider than the viewport is centred on that axis instead. |