SvgPathElement Class
https://svgwg.org/specs/paths/#InterfaceSVGPathElement
public sealed class SvgPathElement : SvgGeometryElement- Inheritance
SvgGeometryElementSvgPathElement
Methods
| Name | Description |
|---|---|
| GetPathData(SvgPathDataSettings?) | https://svgwg.org/specs/paths/#InterfaceSVGPathData: the segments of the path data of the d attribute, up to the first error. When SvgPathDataSettings.Normalize is true, the segments are converted to the absolute M, L, C and Z commands (the arcs are approximated by cubic Béziers). |
| GetPathSegmentAtLength(float) | https://svgwg.org/specs/paths/#InterfaceSVGPathElement: the segment of the path data at the distance along the path (clamped to [0, total length]), or null if the path is empty. |
| SetPathData(IEnumerable<SvgPathSegment>) | https://svgwg.org/specs/paths/#InterfaceSVGPathData: sets the d attribute to the serialization of the segments, up to the first invalid segment (unknown type, wrong number of values, non-finite value, or a first segment that is not a moveto). The attribute is removed when there is no valid segment. |
GetPathData(SvgPathDataSettings?)
SvgElements.cshttps://svgwg.org/specs/paths/#InterfaceSVGPathData: the segments of the path data of the d attribute, up to the first error. When SvgPathDataSettings.Normalize is true, the segments are converted to the absolute M, L, C and Z commands (the arcs are approximated by cubic Béziers).
public IReadOnlyList<SvgPathSegment> GetPathData(SvgPathDataSettings? settings = null)GetPathSegmentAtLength(float)
SvgElements.cshttps://svgwg.org/specs/paths/#InterfaceSVGPathElement: the segment of the path data at the distance along the path (clamped to [0, total length]), or null if the path is empty.
public SvgPathSegment? GetPathSegmentAtLength(float distance)SetPathData(IEnumerable<SvgPathSegment>)
SvgElements.cshttps://svgwg.org/specs/paths/#InterfaceSVGPathData: sets the d attribute to the serialization of the segments, up to the first invalid segment (unknown type, wrong number of values, non-finite value, or a first segment that is not a moveto). The attribute is removed when there is no valid segment.
public void SetPathData(IEnumerable<SvgPathSegment> pathData)