Table of Contents

Class TextInfo

Namespace
HelixToolkit.SharpDX
Assembly
HelixToolkit.SharpDX.dll
public class TextInfo
Inheritance
TextInfo
Derived
Inherited Members

Constructors

TextInfo()

public TextInfo()

TextInfo(string, Vector3)

public TextInfo(string text, Vector3 origin)

Parameters

text string
origin Vector3

Properties

ActualHeight

public float ActualHeight { get; protected set; }

Property Value

float

ActualWidth

public float ActualWidth { get; protected set; }

Property Value

float

Angle

Gets or sets the rotation angle in radians.

public float Angle { get; set; }

Property Value

float

The angle in radians.

Background

public Color4 Background { get; set; }

Property Value

Color4

BoundSphere

public BoundingSphere BoundSphere { get; }

Property Value

BoundingSphere

Foreground

public Color4 Foreground { get; set; }

Property Value

Color4

HorizontalAlignment

Sets or gets the horizontal alignment. Default = Center

For example, when sets horizontal and vertical alignment to top/left, billboard's bottom/right point will be anchored at the billboard origin.

public BillboardHorizontalAlignment HorizontalAlignment { get; set; }

Property Value

BillboardHorizontalAlignment

The horizontal alignment.

Offset

Additional offset for billboard display location. Behavior depends on whether billboard is fixed sized or not. When billboard is fixed sized, the offset is screen spaced.

public Vector2 Offset { get; set; }

Property Value

Vector2

Origin

public Vector3 Origin { get; set; }

Property Value

Vector3

Scale

public float Scale { get; set; }

Property Value

float

Text

public string Text { get; set; }

Property Value

string

VerticalAlignment

Sets or gets the vertical alignment. Default = Center

For example, when sets horizontal and vertical alignment to top/left, billboard's bottom/right point will be anchored at the billboard origin.

public BillboardVerticalAlignment VerticalAlignment { get; set; }

Property Value

BillboardVerticalAlignment

The vertical alignment.

Methods

UpdateTextInfo(float, float)

public virtual void UpdateTextInfo(float actualWidth, float actualHeight)

Parameters

actualWidth float
actualHeight float