Table of Contents

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

string

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

public TextAlignment TextAlignment { get; set; }

Property Value

TextAlignment

Methods

ArrangeOverride(RectangleF)

protected override RectangleF ArrangeOverride(RectangleF finalSize)

Parameters

finalSize RectangleF

Returns

RectangleF

CreateRenderCore()

Creates the render core.

protected override RenderCore2D CreateRenderCore()

Returns

RenderCore2D

MeasureOverride(Vector2)

protected override Vector2 MeasureOverride(Vector2 availableSize)

Parameters

availableSize Vector2

Returns

Vector2

OnHitTest(ref Vector2, out HitTest2DResult?)

Called when [hit test].

protected override bool OnHitTest(ref Vector2 mousePoint, out HitTest2DResult? hitResult)

Parameters

mousePoint Vector2

The mouse point.

hitResult HitTest2DResult

The hit result.

Returns

bool