Skip to main content

Class TextBlock

Namespace: VelloSharp.Composition.Controls
Assembly: VelloSharp.Composition.dll

public class TextBlock : CompositionElement

Inheritance

objectCompositionElementTextBlock

Derived

AccessText, TextBox

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

float

Foreground

public CompositionColor Foreground { get; set; }

Property Value

CompositionColor

Text

public virtual string? Text { get; set; }

Property Value

string?

Methods

GetTextForRendering()

protected virtual string? GetTextForRendering()

Returns

string?

Measure(in LayoutConstraints)

public override void Measure(in LayoutConstraints constraints)

Parameters

constraints LayoutConstraints