Method Text
- Namespace
- GeometryHelper.Export
- Assembly
- GeometryHelper.dll
Text(GeoPoint2, string, string)
Adds a label, the text starting at a point and reading upright however the picture is zoomed.
public SvgWriter Text(GeoPoint2 at, string text, string colour = "black")
Parameters
atGeoPoint2Where the text starts, at its baseline.
textstringThe text; it is escaped, so that
a < bis shown as it is written, and every character XML 1.0 forbids, such as a control character or an unpaired surrogate, is shown as U+FFFD, so that the picture still parses.colourstringThe colour of the letters.
Returns
Remarks
The letters are 3 % of the larger side of what is drawn high, margin not counted, as a dot is 0.6 % of it: a picture of content 100 wide has letters 3 high. The point grows the picture, and the length of the text does not.
Exceptions
- ArgumentNullException
Thrown when the text is null.