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
DefaultFont
public static readonly string DefaultFont
Field Value
FlowDirectionProperty
The text alignment property
public static readonly DependencyProperty FlowDirectionProperty
Field Value
FontFamilyProperty
The font family property
public static readonly DependencyProperty FontFamilyProperty
Field Value
FontSizeProperty
public static readonly DependencyProperty FontSizeProperty
Field Value
FontStyleProperty
public static readonly DependencyProperty FontStyleProperty
Field Value
FontWeightProperty
public static readonly DependencyProperty FontWeightProperty
Field Value
ForegroundProperty
public static readonly DependencyProperty ForegroundProperty
Field Value
TextAlignmentProperty
The text alignment property
public static readonly DependencyProperty TextAlignmentProperty
Field Value
TextProperty
public static readonly DependencyProperty TextProperty
Field Value
Properties
Background
public Brush? Background { get; set; }
Property Value
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
FontStyle
public FontStyle FontStyle { get; set; }
Property Value
FontWeight
public FontWeight FontWeight { get; set; }
Property Value
Foreground
public Brush Foreground { get; set; }
Property Value
Text
public string Text { get; set; }
Property Value
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
nodeSceneNode2D
OnAttached()
protected override void OnAttached()
OnCreateSceneNode()
Called when [create scene node].
protected override SceneNode2D OnCreateSceneNode()
Returns
OnUpdate(RenderContext2D)
protected override void OnUpdate(RenderContext2D context)
Parameters
contextRenderContext2D