Class TextNode2D
- Namespace
- HelixToolkit.SharpDX.Model.Scene2D
- Assembly
- HelixToolkit.SharpDX.dll
public class TextNode2D : SceneNode2D, IDisposable, IHitable2D
- Inheritance
-
TextNode2D
- Implements
- Inherited Members
Properties
Background
public Brush? Background { get; set; }
Property Value
- Brush
FlowDirection
public FlowDirection FlowDirection { get; set; }
Property Value
- FlowDirection
FontFamily
public string FontFamily { get; set; }
Property Value
FontSize
public int FontSize { get; set; }
Property Value
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
TextAlignment
public TextAlignment TextAlignment { get; set; }
Property Value
- TextAlignment
Methods
ArrangeOverride(RectangleF)
protected override RectangleF ArrangeOverride(RectangleF finalSize)
Parameters
finalSizeRectangleF
Returns
CreateRenderCore()
Creates the render core.
protected override RenderCore2D CreateRenderCore()
Returns
MeasureOverride(Vector2)
protected override Vector2 MeasureOverride(Vector2 availableSize)
Parameters
availableSizeVector2
Returns
OnHitTest(ref Vector2, out HitTest2DResult?)
Called when [hit test].
protected override bool OnHitTest(ref Vector2 mousePoint, out HitTest2DResult? hitResult)
Parameters
mousePointVector2The mouse point.
hitResultHitTest2DResultThe hit result.