Class TextBlock
- Namespace
- Forma
- Assembly
- Forma.dll
Template-free read-only text foundation backed by the retained text layout path.
public class TextBlock : Label, IAddChild<Control>, IAddChild, INotifyPropertyChanged
- Inheritance
-
TextBlock
- Implements
- Inherited Members
Constructors
TextBlock()
public TextBlock()
Properties
Decoration
public TextDecoration Decoration { get; set; }
Property Value
Inlines
public IList<Inline> Inlines { get; }
Property Value
LetterSpacing
public float LetterSpacing { get; set; }
Property Value
LineHeight
public float LineHeight { get; set; }
Property Value
Text
public string Text { get; set; }
Property Value
UsesInlineContent
public bool UsesInlineContent { get; }
Property Value
Methods
AdjustTextLayout(TextLayout)
protected override TextLayout AdjustTextLayout(TextLayout layout)
Parameters
layoutTextLayout
Returns
DrawLabelText(UIRenderContext)
Draws this label's text. Rich-text derived controls can replace this while retaining child rendering.
protected override void DrawLabelText(UIRenderContext context)
Parameters
contextUIRenderContext
GetCharacterBounds(int)
public override Rectangle GetCharacterBounds(int position)
Parameters
positionint
Returns
- Rectangle
GetMinimumSize()
public override Vector2 GetMinimumSize()
Returns
- Vector2
GetTextLineSpacing(UIFont)
protected override float GetTextLineSpacing(UIFont font)
Parameters
fontUIFont