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 SvgPathSegment

Constructors

NameDescription
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.cs

Creates a segment with an empty type and no values.

public SvgPathSegment()

SvgPathSegment(string, IReadOnlyList<float>)

SvgPathSegment.cs

Creates a segment with the given command letter and values.

public SvgPathSegment(string type, IReadOnlyList<float> values)
Parameters
type string
values IReadOnlyList<float>

Properties

NameDescription
TypeThe command letter of the segment (e.g. "M", "l", "Z").
ValuesThe 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; }

The values of the command. The flags of an arc are 0 or 1.

public IReadOnlyList<float> Values { get; set; }

Methods

NameDescription
ToString()Returns a string that represents the current object.

Returns a string that represents the current object.

public override string ToString()

Returns

string A string that represents the current object.