TextComponent
Description
- Derived from
-
Component abstract
ITextProperty - Extended by
-
InputField
LabelView sealed
Abstract base class for components that display textual content.
The Component.ComputeLayoutSize method computes the layout width as the maximum measured width of ITextProperty.Text and TextMeasure using IPixelFontInfo.Measure. The layout height is computed using IPixelFontInfo.PaddingCompact.
The Component.ComputeLayoutBaseline method computes the baseline as the sum of IPixelFontInfo.Ascent and IPixelFontInfo.PaddingOffset, i.e. subclasses may use the anchor Anchor.TopLeft at coordinates (0; textOffset).