PathDataPart¶
Namespace: ThinkGeo.Core
One painted part of a PointType.PathData symbol.
public class PathDataPart
Inheritance object → PathDataPart
Remarks:
An icon is rarely one colour. A warning pin is a coloured body, a bordered triangle and a mark on top - three shapes with three paints. Each becomes one of these, and PointStyle.PathDataParts holds them in paint order: later parts draw over earlier ones, the way an SVG document paints its elements.
Every part is measured against one shared frame - PointStyle.PathDataViewBox, or the parts' combined extent - so they keep the positions and proportions they had in the artwork they came from.
Properties¶
Data¶
Gets or sets the SVG path data this part is drawn from.
public string Data { get; set; }
Property Value¶
string
The d attribute of an SVG
Remarks:
In the coordinates of the artwork, not of the symbol: the part is placed by measuring it against the frame it shares with the other parts, so leave it exactly as the document had it.
FillBrush¶
Gets or sets the brush that fills this part.
public GeoBrush FillBrush { get; set; }
Property Value¶
GeoBrush
Null leaves the part unfilled, which is SVG's fill="none".
OutlinePen¶
Gets or sets the pen that outlines this part.
public GeoPen OutlinePen { get; set; }
Property Value¶
GeoPen
Null leaves the part unoutlined.
Constructors¶
PathDataPart()¶
Initializes a new instance of the PathDataPart class.
public PathDataPart()
PathDataPart(string, GeoBrush)¶
Initializes a new instance of the PathDataPart class.
public PathDataPart(string pathData, GeoBrush fillBrush)
Parameters¶
pathData string
The SVG path data this part is drawn from.
fillBrush GeoBrush
The brush that fills it, or null to leave it unfilled.
PathDataPart(string, GeoBrush, GeoPen)¶
Initializes a new instance of the PathDataPart class.
public PathDataPart(string pathData, GeoBrush fillBrush, GeoPen outlinePen)
Parameters¶
pathData string
The SVG path data this part is drawn from.
fillBrush GeoBrush
The brush that fills it, or null to leave it unfilled.
outlinePen GeoPen
The pen that outlines it, or null to leave it unoutlined.