|
VectSharp 2.6.1
A light library for C# vector graphics
|
A plot element that draws a single text label. More...

Public Member Functions | |||
| TextLabel (string label, T position, ICoordinateSystem< T > coordinateSystem) | |||
| Create a new TextLabel<T> instance. More... | |||
| void | Plot (Graphics target) | ||
Draw the plot element on the specified target  Graphics.
| |||
| void | Plot (Graphics target) | ||
| Draw the plot element on the specified target  Graphics. More... | |||
Properties | |
| T | Position [get, set] |
| The position of the label, in data space coordinates. More... | |
| string | Label [get, set] |
| The text of the label. This can include formatting specifiers (see the documentation for the FormattedText.Format(string, Font, Font, Font, Font, Brush) method). More... | |
| double | Rotation = 0 [get, set] |
| The angle at which the text is drawn, with respect to the horizontal. More... | |
| TextBaselines | Baseline = TextBaselines.Middle [get, set] |
| The baseline for the text. More... | |
| TextAnchors | Alignment = TextAnchors.Center [get, set] |
| The alignment for the text. More... | |
| ICoordinateSystem< T > | CoordinateSystem [get, set] |
| The coordinate system used to transform the points from data space to plot space. More... | |
| PlotElementPresentationAttributes | PresentationAttributes = new PlotElementPresentationAttributes() { Stroke = null } [get, set] |
| Presentation attributes determining the appearance (stroke and fill colour, etc.) of the text label. More... | |
| string | Tag [get, set] |
| A tag to identify the label in the plot. More... | |
Properties inherited from VectSharp.Plots.IPlotElement | |
| ICoordinateSystem | CoordinateSystem [get] |
| The coordinate system used to transform the points from data space to plot space. More... | |
A plot element that draws a single text label.
| T | The kind of data describing the data points (generally, IReadOnlyList<double>). |
Definition at line 226 of file DataPoints.cs.
| VectSharp.Plots.TextLabel< T >.TextLabel | ( | string | label, |
| T | position, | ||
| ICoordinateSystem< T > | coordinateSystem | ||
| ) |
Create a new TextLabel<T> instance.
| label | The text of the label. This can include formatting specifiers (see the documentation for the FormattedText.Format(string, Font, Font, Font, Font, Brush) method). |
| position | The position of the label, in data space coordinates. |
| coordinateSystem | The coordinate system used to transform the points from data space to plot space. |
Definition at line 275 of file DataPoints.cs.
| void VectSharp.Plots.TextLabel< T >.Plot | ( | Graphics | target | ) |
Draw the plot element on the specified target  Graphics.
| target | The Graphics on which to draw. |
Implements VectSharp.Plots.IPlotElement.
Definition at line 283 of file DataPoints.cs.
|
getset |
The alignment for the text.
Definition at line 251 of file DataPoints.cs.
|
getset |
The baseline for the text.
Definition at line 246 of file DataPoints.cs.
|
getset |
The coordinate system used to transform the points from data space to plot space.
Implements VectSharp.Plots.IPlotElement.
Definition at line 256 of file DataPoints.cs.
|
getset |
The text of the label. This can include formatting specifiers (see the documentation for the FormattedText.Format(string, Font, Font, Font, Font, Brush) method).
Definition at line 236 of file DataPoints.cs.
|
getset |
The position of the label, in data space coordinates.
Definition at line 231 of file DataPoints.cs.
|
getset |
Presentation attributes determining the appearance (stroke and fill colour, etc.) of the text label.
Definition at line 262 of file DataPoints.cs.
|
getset |
The angle at which the text is drawn, with respect to the horizontal.
Definition at line 241 of file DataPoints.cs.
|
getset |
A tag to identify the label in the plot.
Definition at line 267 of file DataPoints.cs.