Class TextBlock
Namespace: VelloSharp.Composition.Controls
Assembly: VelloSharp.Composition.dll
public class TextBlock : CompositionElement
Inheritance
object ← CompositionElement ← TextBlock
Derived
Inherited Members
CompositionElement.ArrangedBounds, CompositionElement.MeasureConstraints, CompositionElement.DesiredSize, CompositionElement.IsMounted, CompositionElement.Measure(in LayoutConstraints), CompositionElement.Arrange(in LayoutRect), CompositionElement.Mount(), CompositionElement.Unmount(), CompositionElement.GetChildren(), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Properties
FontSize
public float FontSize { get; set; }
Property Value
Foreground
public CompositionColor Foreground { get; set; }
Property Value
Text
public virtual string? Text { get; set; }
Property Value
Methods
GetTextForRendering()
protected virtual string? GetTextForRendering()
Returns
Measure(in LayoutConstraints)
public override void Measure(in LayoutConstraints constraints)
Parameters
constraints
LayoutConstraints