🔹 FormattedText Class
namespace Noesis | MSDN
Provides low-level control for drawing text.
Properties
| Name | Description |
|---|---|
| ◆ MaxTextHeight | Gets the maximum height of a text column |
| ◆ MaxTextWidth | Gets the maximum text width for a line of text |
◆ Dependency Property ◆ Reflection Property
Attached Properties
FormattedText has no attached properties
Methods
| Name | Description |
|---|---|
| ◆ BuildTextRuns(const char*, Noesis::InlineCollection, FontFamily*, FontWeight, FontStretch, FontStyle, float, float, Brush*, Brush*, Brush*, FlowDirection, TextDecorations, int32_t) | Generates and keeps a collection of runs from the supplied InlineCollection and for the specified font properties |
| ◆ GetBounds() | Gets text bounds |
| ◆ GetGlyphPosition(uint32_t, bool, float&, float&) | Gets x/y coordinates at where the specified glyph is positioned. If the glyph is outside layout limits then -10 is returned for both x/y coordinates |
| ◆ GetLineInfo(uint32_t) | Gets information about the specified line |
| ◆ GetNumLines() | Gets the number of lines based on the last layout |
| ◆ HasVisualBrush() | Indicates if this FormattedText uses any VisualBrush |
| ◆ HitTest(float, float, bool&, bool&) | Obtains the glyph index under the specified x/y coordinates, indicating if the point is inside the glyph bounds |
| ◆ IsEmpty() | Indicates if this FormattedText has no text |
| ◆ Layout(TextAlignment, TextWrapping, TextTrimming, float, float, const Thickness&, float, LineStackingStrategy, FlowDirection, bool) | Layouts and prepares text for rendering for the given constraints (see constructor remarks) |
| ◆ Measure(TextAlignment, TextWrapping, TextTrimming, float, float, float, LineStackingStrategy, FlowDirection) | Obtains the size of the stored runs for the given constraints (see constructor remarks) |
Events
FormattedText has no events
📍 On this page