Table of Contents

Class TextModel2D

Namespace
HelixToolkit.WinUI.SharpDX.Elements2D
Assembly
HelixToolkit.WinUI.SharpDX.dll
[ContentProperty(Name = "Text")]
public class TextModel2D : Element2D, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, IWinRTObject, IDynamicInterfaceCastable, IEquatable<Control>, IDisposable, ITransformable2D, IHitable2D, ITextBlock, IBackground
Inheritance
TextModel2D
Implements
IWinRTObject
Inherited Members

Fields

BackgroundProperty

public static readonly DependencyProperty BackgroundProperty

Field Value

DependencyProperty

DefaultFont

public static readonly string DefaultFont

Field Value

string

FlowDirectionProperty

The text alignment property

public static readonly DependencyProperty FlowDirectionProperty

Field Value

DependencyProperty

FontFamilyProperty

The font family property

public static readonly DependencyProperty FontFamilyProperty

Field Value

DependencyProperty

FontSizeProperty

public static readonly DependencyProperty FontSizeProperty

Field Value

DependencyProperty

FontStyleProperty

public static readonly DependencyProperty FontStyleProperty

Field Value

DependencyProperty

FontWeightProperty

public static readonly DependencyProperty FontWeightProperty

Field Value

DependencyProperty

ForegroundProperty

public static readonly DependencyProperty ForegroundProperty

Field Value

DependencyProperty

TextAlignmentProperty

The text alignment property

public static readonly DependencyProperty TextAlignmentProperty

Field Value

DependencyProperty

TextProperty

public static readonly DependencyProperty TextProperty

Field Value

DependencyProperty

Properties

Background

public Brush? Background { get; set; }

Property Value

Brush

FlowDirection

Gets or sets the text alignment.

public FlowDirection FlowDirection { get; set; }

Property Value

FlowDirection

The text alignment.

FontFamily

Gets or sets the font family.

public string? FontFamily { get; set; }

Property Value

string

The font family.

FontSize

public int FontSize { get; set; }

Property Value

int

FontStyle

public FontStyle FontStyle { get; set; }

Property Value

FontStyle

FontWeight

public FontWeight FontWeight { get; set; }

Property Value

FontWeight

Foreground

public Brush Foreground { get; set; }

Property Value

Brush

Text

public string Text { get; set; }

Property Value

string

TextAlignment

Gets or sets the text alignment.

public TextAlignment TextAlignment { get; set; }

Property Value

TextAlignment

The text alignment.

Methods

AssignDefaultValuesToSceneNode(SceneNode2D)

protected override void AssignDefaultValuesToSceneNode(SceneNode2D node)

Parameters

node SceneNode2D

OnAttached()

protected override void OnAttached()

OnCreateSceneNode()

Called when [create scene node].

protected override SceneNode2D OnCreateSceneNode()

Returns

SceneNode2D

OnUpdate(RenderContext2D)

protected override void OnUpdate(RenderContext2D context)

Parameters

context RenderContext2D