Class TextVisual3D
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
A visual element that shows text.
public class TextVisual3D : ModelVisual3D, IAnimatable, IAddChild
- Inheritance
-
TextVisual3D
- Implements
- Inherited Members
- Extension Methods
Remarks
Set the Text property last to avoid multiple updates.
Fields
AngleProperty
Identifies the Angle dependency property.
public static readonly DependencyProperty AngleProperty
Field Value
BackgroundProperty
Identifies the Background dependency property.
public static readonly DependencyProperty BackgroundProperty
Field Value
BorderBrushProperty
Identifies the BorderBrush dependency property.
public static readonly DependencyProperty BorderBrushProperty
Field Value
BorderThicknessProperty
Identifies the BorderThickness dependency property.
public static readonly DependencyProperty BorderThicknessProperty
Field Value
FontFamilyProperty
Identifies the FontFamily dependency property.
public static readonly DependencyProperty FontFamilyProperty
Field Value
FontSizeProperty
Identifies the FontSize dependency property.
public static readonly DependencyProperty FontSizeProperty
Field Value
FontWeightProperty
Identifies the FontWeight dependency property.
public static readonly DependencyProperty FontWeightProperty
Field Value
ForegroundProperty
Identifies the Foreground dependency property.
public static readonly DependencyProperty ForegroundProperty
Field Value
HeightProperty
Identifies the Height dependency property.
public static readonly DependencyProperty HeightProperty
Field Value
HorizontalAlignmentProperty
Identifies the HorizontalAlignment dependency property.
public static readonly DependencyProperty HorizontalAlignmentProperty
Field Value
IsDoubleSidedProperty
Identifies the IsDoubleSided dependency property.
public static readonly DependencyProperty IsDoubleSidedProperty
Field Value
IsFlippedProperty
Identifies the IsFlipped dependency property.
public static readonly DependencyProperty IsFlippedProperty
Field Value
PaddingProperty
Identifies the Padding dependency property.
public static readonly DependencyProperty PaddingProperty
Field Value
PositionProperty
Identifies the Position dependency property.
public static readonly DependencyProperty PositionProperty
Field Value
TextDirectionProperty
Identifies the TextDirection dependency property.
public static readonly DependencyProperty TextDirectionProperty
Field Value
TextProperty
Identifies the Text dependency property.
public static readonly DependencyProperty TextProperty
Field Value
UpDirectionProperty
Identifies the UpDirection dependency property.
public static readonly DependencyProperty UpDirectionProperty
Field Value
VerticalAlignmentProperty
Identifies the VerticalAlignment dependency property.
public static readonly DependencyProperty VerticalAlignmentProperty
Field Value
Properties
Angle
The rotation angle of the text in counter-clockwise, in degrees.
public double Angle { get; set; }
Property Value
Background
Gets or sets the background brush.
public Brush Background { get; set; }
Property Value
- Brush
The background.
BorderBrush
Gets or sets the border brush.
public Brush BorderBrush { get; set; }
Property Value
- Brush
The border brush.
BorderThickness
Gets or sets the border thickness.
public Thickness BorderThickness { get; set; }
Property Value
- Thickness
The border thickness.
FontFamily
Gets or sets the font family.
public FontFamily FontFamily { get; set; }
Property Value
- FontFamily
The font family.
FontSize
Gets or sets the size of the font (if not set, the Height property is used.
public double FontSize { get; set; }
Property Value
- double
The size of the font.
FontWeight
Gets or sets the font weight.
public FontWeight FontWeight { get; set; }
Property Value
- FontWeight
The font weight.
Foreground
Gets or sets the foreground (text) brush.
public Brush Foreground { get; set; }
Property Value
- Brush
The foreground brush.
Height
Gets or sets the height of the text.
public double Height { get; set; }
Property Value
- double
The text height.
HorizontalAlignment
Gets or sets the horizontal alignment.
public HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
- HorizontalAlignment
The horizontal alignment.
IsDoubleSided
Gets or sets a value indicating whether this text visual is double sided.
public bool IsDoubleSided { get; set; }
Property Value
- bool
trueif this instance is double sided; otherwise,false.
IsFlipped
Gets or sets a value indicating whether the text should be flipped (mirrored horizontally).
public bool IsFlipped { get; set; }
Property Value
- bool
trueif text is flipped; otherwise,false.
Remarks
This may be useful when using a mirror transform on the text visual.
Padding
Gets or sets the padding.
public Thickness Padding { get; set; }
Property Value
- Thickness
The padding.
Position
Gets or sets the position of the text.
public Point3D Position { get; set; }
Property Value
- Point3D
The position.
Text
Gets or sets the text.
public string Text { get; set; }
Property Value
- string
The text.
TextDirection
Gets or sets the text direction.
public Vector3D TextDirection { get; set; }
Property Value
- Vector3D
The direction.
UpDirection
Gets or sets the up direction of the text.
public Vector3D UpDirection { get; set; }
Property Value
- Vector3D
The up direction.
VerticalAlignment
Gets or sets the vertical alignment.
public VerticalAlignment VerticalAlignment { get; set; }
Property Value
- VerticalAlignment
The vertical alignment.