SvgPathSegment Class
https://svgwg.org/specs/paths/#InterfaceSVGPathSegment: a command of path data (e.g. { type: "L", values: [10, 20] }). The browsers implement it as a dictionary: the segments returned by SvgPathElement.GetPathData are not bound to the element.
public sealed class SvgPathSegmentConstructors
| Name | Description |
|---|---|
| SvgPathSegment() | Creates a segment with an empty type and no values. |
| SvgPathSegment(string, IReadOnlyList<float>) | Creates a segment with the given command letter and values. |
SvgPathSegment overloads
SvgPathSegment()
SvgPathSegment.csCreates a segment with an empty type and no values.
public SvgPathSegment()SvgPathSegment(string, IReadOnlyList<float>)
SvgPathSegment.csCreates a segment with the given command letter and values.
public SvgPathSegment(string type, IReadOnlyList<float> values)Parameters
typestringvaluesIReadOnlyList<float>
Properties
| Name | Description |
|---|---|
| Type | The command letter of the segment (e.g. "M", "l", "Z"). |
| Values | The values of the command. The flags of an arc are 0 or 1. |
The command letter of the segment (e.g. "M", "l", "Z").
public string Type { get; set; }Values
SvgPathSegment.csThe values of the command. The flags of an arc are 0 or 1.
public IReadOnlyList<float> Values { get; set; }Methods
| Name | Description |
|---|---|
| ToString() | Returns a string that represents the current object. |