IFormattedTextImpl Interface

Summary

Defines the platform-specific interface for FormattedText.
Namespace
Avalonia.Platform
graph BT Type["IFormattedTextImpl"] class Type type-node

Syntax

public interface IFormattedTextImpl

Properties

Name Value Summary
Bounds Rect
The measured bounds of the text.
Constraint Size
Gets the constraint of the text.
Text string
Gets the text.

Methods

Name Value Summary
GetLines() IEnumerable<FormattedTextLine>
Gets the lines in the text.
HitTestPoint(Point) TextHitTestResult
Hit tests a point in the text.
HitTestTextPosition(int) Rect
Gets the bounds rectangle that the specified character occupies.
HitTestTextRange(int, int) IEnumerable<Rect>
Gets the bounds rectangles that the specified text range occupies.