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
Properties
ActualHeight
public float ActualHeight { get; protected set; }
Property Value
ActualWidth
public float ActualWidth { get; protected set; }
Property Value
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
BoundSphere
public BoundingSphere BoundSphere { get; }
Property Value
Foreground
public Color4 Foreground { get; set; }
Property Value
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
Origin
public Vector3 Origin { get; set; }
Property Value
Scale
public float Scale { get; set; }
Property Value
Text
public string Text { get; set; }
Property Value
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)