SceneText Class
A line of text, positioned by its baseline.
public sealed class SceneText : SceneElement- Inheritance
SceneElementSceneText
Constructors
| Name | Description |
|---|---|
| SceneText(double, double, string, ChartFont, ChartColor) | A line of text, positioned by its baseline. |
SceneText(double, double, string, ChartFont, ChartColor)
SceneText.csA line of text, positioned by its baseline.
public SceneText(double x, double y, string text, ChartFont font, ChartColor color)Parameters
xdouble- The x coordinate of the anchor.
ydouble- The y coordinate of the baseline.
textstring- The text.
fontChartFont- The size and the weight of the font.
colorChartColor- The color of the text.
Properties
| Name | Description |
|---|---|
| Anchor | Gets or sets where the text is anchored horizontally. |
| Color | Gets the color of the text. |
| Font | Gets the size and the weight of the font. |
| MeasuredWidth | Gets or sets the advance width of the text, as the layout measured it. |
| Rotation | Gets or sets the rotation of the text around its anchor, in degrees, clockwise. |
| Text | Gets the text. |
| X | Gets the x coordinate of the anchor. |
| Y | Gets the y coordinate of the baseline. |
Anchor
SceneText.csGets or sets where the text is anchored horizontally.
public SceneTextAnchor Anchor { get; set; }