Table of Contents

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

at GeoPoint2

Where the text starts, at its baseline.

text string

The text; it is escaped, so that a < b is 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.

colour string

The colour of the letters.

Returns

SvgWriter

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.