SceneText Class

A line of text, positioned by its baseline.

public sealed class SceneText : SceneElement
Inheritance
SceneElement SceneText

Constructors

NameDescription
SceneText(double, double, string, ChartFont, ChartColor)A line of text, positioned by its baseline.

SceneText(double, double, string, ChartFont, ChartColor)

SceneText.cs

A line of text, positioned by its baseline.

public SceneText(double x, double y, string text, ChartFont font, ChartColor color)

Parameters

x double
The x coordinate of the anchor.
y double
The y coordinate of the baseline.
text string
The text.
font ChartFont
The size and the weight of the font.
color ChartColor
The color of the text.

Properties

NameDescription
AnchorGets or sets where the text is anchored horizontally.
ColorGets the color of the text.
FontGets the size and the weight of the font.
MeasuredWidthGets or sets the advance width of the text, as the layout measured it.
RotationGets or sets the rotation of the text around its anchor, in degrees, clockwise.
TextGets the text.
XGets the x coordinate of the anchor.
YGets the y coordinate of the baseline.

Gets or sets where the text is anchored horizontally.

public SceneTextAnchor Anchor { get; set; }

Property value

SceneTextAnchor

Gets the color of the text.

public ChartColor Color { get; }

Property value

ChartColor

Gets the size and the weight of the font.

public ChartFont Font { get; }

Property value

ChartFont

MeasuredWidth

SceneText.cs

Gets or sets the advance width of the text, as the layout measured it.

public double MeasuredWidth { get; set; }

Property value

double

Rotation

SceneText.cs

Gets or sets the rotation of the text around its anchor, in degrees, clockwise.

public double Rotation { get; set; }

Property value

double

Gets the text.

public string Text { get; }

Property value

string

Gets the x coordinate of the anchor.

public double X { get; }

Property value

double

Gets the y coordinate of the baseline.

public double Y { get; }

Property value

double