Class SVGPathElement

Class SVGPathElement

Namespace: Aspose.Html.Dom.Svg
Assembly: Aspose.HTML.dll (25.2.0)

The SVGPathElement interface corresponds to the ‘path’ element.

[ComVisible(true)]
[DOMObject]
[DOMName("SVGPathElement")]
public class SVGPathElement : SVGGeometryElement, INotifyPropertyChanged, IEventTarget, IDisposable, IXPathNSResolver, IParentNode, IElementTraversal, IChildNode, IElementCSSInlineStyle, ISVGTests, ISVGAnimatedPathData

Inheritance

objectDOMObjectEventTargetNodeElementSVGElementSVGGraphicsElementSVGGeometryElementSVGPathElement

Implements

INotifyPropertyChanged, IEventTarget, IDisposable, IXPathNSResolver, IParentNode, IElementTraversal, IChildNode, IElementCSSInlineStyle, ISVGTests, ISVGAnimatedPathData

Inherited Members

SVGGeometryElement.GetEquivalentPath(), SVGGeometryElement.GetTotalLength(), SVGGeometryElement.GetPointAtLength(float), SVGGeometryElement.Dispose(bool), SVGGeometryElement.PathLength, SVGGraphicsElement.GetBBox(), SVGGraphicsElement.GetCTM(), SVGGraphicsElement.GetScreenCTM(), SVGGraphicsElement.NearestViewportElement, SVGGraphicsElement.FarthestViewportElement, SVGGraphicsElement.Transform, SVGGraphicsElement.RequiredFeatures, SVGGraphicsElement.RequiredExtensions, SVGGraphicsElement.SystemLanguage, SVGElement.Id, SVGElement.OwnerSVGElement, SVGElement.ViewportElement, SVGElement.ClassName, SVGElement.Style, Element.GetAttributeNames(), Element.HasAttributes(), Element.GetAttribute(string), Element.GetAttributeNS(string, string), Element.SetAttribute(string, string), Element.SetAttributeNS(string, string, string), Element.RemoveAttribute(string), Element.RemoveAttributeNS(string, string), Element.HasAttribute(string), Element.HasAttributeNS(string, string), Element.ToggleAttribute(string), Element.ToggleAttribute(string, bool), Element.GetAttributeNode(string), Element.SetAttributeNode(Attr), Element.RemoveAttributeNode(Attr), Element.GetAttributeNodeNS(string, string), Element.SetAttributeNodeNS(Attr), Element.GetElementsByTagName(string), Element.GetElementsByTagNameNS(string, string), Element.Remove(), Element.QuerySelectorAll(string), Element.QuerySelector(string), Element.AttachShadow(ShadowRootMode), Element.GetElementsByClassName(string), Element.Dispose(bool), Element.ClassList, Element.LocalName, Element.NamespaceURI, Element.Prefix, Element.NodeName, Element.NodeType, Element.TagName, Element.Id, Element.ClassName, Element.TextContent, Element.Attributes, Element.FirstElementChild, Element.LastElementChild, Element.PreviousElementSibling, Element.NextElementSibling, Element.ChildElementCount, Element.Children, Element.InnerHTML, Element.OuterHTML, Element.ShadowRoot, Node.ELEMENT_NODE, Node.ATTRIBUTE_NODE, Node.TEXT_NODE, Node.CDATA_SECTION_NODE, Node.ENTITY_REFERENCE_NODE, Node.ENTITY_NODE, Node.PROCESSING_INSTRUCTION_NODE, Node.COMMENT_NODE, Node.DOCUMENT_NODE, Node.DOCUMENT_TYPE_NODE, Node.DOCUMENT_FRAGMENT_NODE, Node.NOTATION_NODE, Node.HasChildNodes(), Node.Normalize(), Node.CloneNode(), Node.CloneNode(bool), Node.IsEqualNode(Node), Node.IsSameNode(Node), Node.LookupPrefix(string), Node.LookupNamespaceURI(string), Node.IsDefaultNamespace(string), Node.InsertBefore(Node, Node), Node.ReplaceChild(Node, Node), Node.RemoveChild(Node), Node.AppendChild(Node), Node.Dispose(bool), Node.ToString(), Node.NodeType, Node.LocalName, Node.NamespaceURI, Node.Prefix, Node.NodeName, Node.BaseURI, Node.OwnerDocument, Node.ParentNode, Node.ParentElement, Node.ChildNodes, Node.FirstChild, Node.LastChild, Node.PreviousSibling, Node.NextSibling, Node.NodeValue, Node.TextContent, EventTarget.AddEventListener(string, DOMEventHandler, bool), EventTarget.AddEventListener(string, IEventListener), EventTarget.AddEventListener(string, IEventListener, bool), EventTarget.RemoveEventListener(string, DOMEventHandler, bool), EventTarget.RemoveEventListener(string, IEventListener), EventTarget.RemoveEventListener(string, IEventListener, bool), EventTarget.DispatchEvent(Event), EventTarget.Dispose(), EventTarget.Dispose(bool), DOMObject.GetPlatformType(), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

AnimatedPathSegList

Provides access to the current animated contents of the ‘d’ attribute in a form which matches one-for-one with SVG’s syntax. If the given attribute or property is being animated, contains the current animated value of the attribute or property, and both the object itself and its contents are read only. If the given attribute or property is not currently being animated, contains the same value as pathSegList.

public SVGPathSegList AnimatedPathSegList { get; }

Property Value

SVGPathSegList

PathSegList

Provides access to the base (i.e., static) contents of the ‘d’ attribute in a form which matches one-for-one with SVG’s syntax. Thus, if the ‘d’ attribute has an “absolute moveto (M)” and an “absolute arcto (A)” command, then pathSegList will have two entries: a SVG_PATHSEG_MOVETO_ABS and a SVG_PATHSEG_ARC_ABS.

public SVGPathSegList PathSegList { get; set; }

Property Value

SVGPathSegList

Methods

CreateSVGPathSegArcAbs(float, float, float, float, float, bool, bool)

Returns a stand-alone, parentless SVGPathSegArcAbs object.

[DOMName("createSVGPathSegArcAbs")]
public SVGPathSegArcAbs CreateSVGPathSegArcAbs(float x, float y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag)

Parameters

x float

The absolute X coordinate for the end point of this path segment.

y float

The absolute Y coordinate for the end point of this path segment.

r1 float

The x-axis radius for the ellipse (i.e., r1).

r2 float

The y-axis radius for the ellipse (i.e., r2).

angle float

The rotation angle in degrees for the ellipse’s x-axis relative to the x-axis of the user coordinate system.

largeArcFlag bool

The value of the large-arc-flag parameter.

sweepFlag bool

The value of the large-arc-flag parameter.

Returns

SVGPathSegArcAbs

A stand-alone, parentless SVGPathSegArcAbs object.

CreateSVGPathSegArcRel(float, float, float, float, float, bool, bool)

Returns a stand-alone, parentless SVGPathSegArcRel object.

[DOMName("createSVGPathSegArcRel")]
public SVGPathSegArcRel CreateSVGPathSegArcRel(float x, float y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag)

Parameters

x float

The relative X coordinate for the end point of this path segment.

y float

The relative Y coordinate for the end point of this path segment.

r1 float

The x-axis radius for the ellipse (i.e., r1).

r2 float

The y-axis radius for the ellipse (i.e., r2).

angle float

The rotation angle in degrees for the ellipse’s x-axis relative to the x-axis of the user coordinate system.

largeArcFlag bool

The value of the large-arc-flag parameter.

sweepFlag bool

The value of the large-arc-flag parameter.

Returns

SVGPathSegArcRel

A stand-alone, parentless SVGPathSegArcRel object.

CreateSVGPathSegClosePath()

Returns a stand-alone, parentless SVGPathSegClosePath object.

[DOMName("createSVGPathSegClosePath")]
public SVGPathSegClosePath CreateSVGPathSegClosePath()

Returns

SVGPathSegClosePath

A stand-alone, parentless SVGPathSegClosePath object.

CreateSVGPathSegCurvetoCubicAbs(float, float, float, float, float, float)

Returns a stand-alone, parentless SVGPathSegCurvetoCubicAbs object.

[DOMName("createSVGPathSegCurvetoCubicAbs")]
public SVGPathSegCurvetoCubicAbs CreateSVGPathSegCurvetoCubicAbs(float x, float y, float x1, float y1, float x2, float y2)

Parameters

x float

The absolute X coordinate for the end point of this path segment.

y float

The absolute Y coordinate for the end point of this path segment.

x1 float

The absolute X coordinate for the first control point.

y1 float

The absolute Y coordinate for the first control point.

x2 float

The absolute X coordinate for the second control point.

y2 float

The absolute Y coordinate for the second control point.

Returns

SVGPathSegCurvetoCubicAbs

A stand-alone, parentless SVGPathSegCurvetoCubicAbs object.

CreateSVGPathSegCurvetoCubicRel(float, float, float, float, float, float)

Returns a stand-alone, parentless SVGPathSegCurvetoCubicRel object.

[DOMName("createSVGPathSegCurvetoCubicRel")]
public SVGPathSegCurvetoCubicRel CreateSVGPathSegCurvetoCubicRel(float x, float y, float x1, float y1, float x2, float y2)

Parameters

x float

The relative X coordinate for the end point of this path segment.

y float

The relative Y coordinate for the end point of this path segment.

x1 float

The relative X coordinate for the first control point.

y1 float

The relative Y coordinate for the first control point.

x2 float

The relative X coordinate for the second control point.

y2 float

The relative Y coordinate for the second control point.

Returns

SVGPathSegCurvetoCubicRel

A stand-alone, parentless SVGPathSegCurvetoCubicRel object.

CreateSVGPathSegCurvetoCubicSmoothAbs(float, float, float, float)

Returns a stand-alone, parentless SVGPathSegCurvetoCubicSmoothAbs object.

[DOMName("createSVGPathSegCurvetoCubicSmoothAbs")]
public SVGPathSegCurvetoCubicSmoothAbs CreateSVGPathSegCurvetoCubicSmoothAbs(float x, float y, float x2, float y2)

Parameters

x float

The absolute X coordinate for the end point of this path segment.

y float

The absolute Y coordinate for the end point of this path segment.

x2 float

The absolute X coordinate for the second control point.

y2 float

The absolute Y coordinate for the second control point.

Returns

SVGPathSegCurvetoCubicSmoothAbs

A stand-alone, parentless SVGPathSegCurvetoCubicSmoothAbs object.

CreateSVGPathSegCurvetoCubicSmoothRel(float, float, float, float)

Returns a stand-alone, parentless SVGPathSegCurvetoCubicSmoothRel object.

[DOMName("createSVGPathSegCurvetoCubicSmoothRel")]
public SVGPathSegCurvetoCubicSmoothRel CreateSVGPathSegCurvetoCubicSmoothRel(float x, float y, float x2, float y2)

Parameters

x float

The relative X coordinate for the end point of this path segment.

y float

The relative Y coordinate for the end point of this path segment.

x2 float

The relative X coordinate for the second control point.

y2 float

The relative Y coordinate for the second control point.

Returns

SVGPathSegCurvetoCubicSmoothRel

A stand-alone, parentless SVGPathSegCurvetoCubicSmoothRel object.

CreateSVGPathSegCurvetoQuadraticAbs(float, float, float, float)

Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticAbs object.

[DOMName("createSVGPathSegCurvetoQuadraticAbs")]
public SVGPathSegCurvetoQuadraticAbs CreateSVGPathSegCurvetoQuadraticAbs(float x, float y, float x1, float y1)

Parameters

x float

The absolute X coordinate for the end point of this path segment.

y float

The absolute Y coordinate for the end point of this path segment.

x1 float

The absolute X coordinate for the first control point.

y1 float

The absolute Y coordinate for the first control point.

Returns

SVGPathSegCurvetoQuadraticAbs

A stand-alone, parentless SVGPathSegCurvetoQuadraticAbs object.

CreateSVGPathSegCurvetoQuadraticRel(float, float, float, float)

Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticRel object.

[DOMName("createSVGPathSegCurvetoQuadraticRel")]
public SVGPathSegCurvetoQuadraticRel CreateSVGPathSegCurvetoQuadraticRel(float x, float y, float x1, float y1)

Parameters

x float

The relative X coordinate for the end point of this path segment.

y float

The relative Y coordinate for the end point of this path segment.

x1 float

The relative X coordinate for the first control point.

y1 float

The relative Y coordinate for the first control point.

Returns

SVGPathSegCurvetoQuadraticRel

A stand-alone, parentless SVGPathSegCurvetoQuadraticRel object.

CreateSVGPathSegCurvetoQuadraticSmoothAbs(float, float)

Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticSmoothAbs object.

[DOMName("createSVGPathSegCurvetoQuadraticSmoothAbs")]
public SVGPathSegCurvetoQuadraticSmoothAbs CreateSVGPathSegCurvetoQuadraticSmoothAbs(float x, float y)

Parameters

x float

The absolute X coordinate for the end point of this path segment.

y float

The absolute Y coordinate for the end point of this path segment.

Returns

SVGPathSegCurvetoQuadraticSmoothAbs

A stand-alone, parentless SVGPathSegCurvetoQuadraticSmoothAbs object.

CreateSVGPathSegCurvetoQuadraticSmoothRel(float, float)

Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticSmoothRel object.

[DOMName("createSVGPathSegCurvetoQuadraticSmoothRel")]
public SVGPathSegCurvetoQuadraticSmoothRel CreateSVGPathSegCurvetoQuadraticSmoothRel(float x, float y)

Parameters

x float

The relative X coordinate for the end point of this path segment.

y float

The relative Y coordinate for the end point of this path segment.

Returns

SVGPathSegCurvetoQuadraticSmoothRel

A stand-alone, parentless SVGPathSegCurvetoQuadraticSmoothRel object.

CreateSVGPathSegLinetoAbs(float, float)

Returns a stand-alone, parentless SVGPathSegLinetoAbs object.

[DOMName("createSVGPathSegLinetoAbs")]
public SVGPathSegLinetoAbs CreateSVGPathSegLinetoAbs(float x, float y)

Parameters

x float

The absolute X coordinate for the end point of this path segment.

y float

The absolute Y coordinate for the end point of this path segment.

Returns

SVGPathSegLinetoAbs

A stand-alone, parentless SVGPathSegLinetoAbs object.

CreateSVGPathSegLinetoHorizontalAbs(float)

Returns a stand-alone, parentless SVGPathSegLinetoHorizontalAbs object.

[DOMName("createSVGPathSegLinetoHorizontalAbs")]
public SVGPathSegLinetoHorizontalAbs CreateSVGPathSegLinetoHorizontalAbs(float x)

Parameters

x float

The absolute X coordinate for the end point of this path segment.

Returns

SVGPathSegLinetoHorizontalAbs

A stand-alone, parentless SVGPathSegLinetoHorizontalAbs object.

CreateSVGPathSegLinetoHorizontalRel(float)

Returns a stand-alone, parentless SVGPathSegLinetoHorizontalRel object.

[DOMName("createSVGPathSegLinetoHorizontalRel")]
public SVGPathSegLinetoHorizontalRel CreateSVGPathSegLinetoHorizontalRel(float x)

Parameters

x float

The relative X coordinate for the end point of this path segment.

Returns

SVGPathSegLinetoHorizontalRel

A stand-alone, parentless SVGPathSegLinetoHorizontalRel object.

CreateSVGPathSegLinetoRel(float, float)

Returns a stand-alone, parentless SVGPathSegLinetoRel object.

[DOMName("createSVGPathSegLinetoRel")]
public SVGPathSegLinetoRel CreateSVGPathSegLinetoRel(float x, float y)

Parameters

x float

The relative X coordinate for the end point of this path segment.

y float

The relative Y coordinate for the end point of this path segment.

Returns

SVGPathSegLinetoRel

A stand-alone, parentless SVGPathSegLinetoRel object.

CreateSVGPathSegLinetoVerticalAbs(float)

Returns a stand-alone, parentless SVGPathSegLinetoVerticalAbs object.

[DOMName("createSVGPathSegLinetoVerticalAbs")]
public SVGPathSegLinetoVerticalAbs CreateSVGPathSegLinetoVerticalAbs(float y)

Parameters

y float

The absolute Y coordinate for the end point of this path segment.

Returns

SVGPathSegLinetoVerticalAbs

A stand-alone, parentless SVGPathSegLinetoVerticalAbs object.

CreateSVGPathSegLinetoVerticalRel(float)

Returns a stand-alone, parentless SVGPathSegLinetoVerticalRel object.

[DOMName("createSVGPathSegLinetoVerticalRel")]
public SVGPathSegLinetoVerticalRel CreateSVGPathSegLinetoVerticalRel(float y)

Parameters

y float

The relative Y coordinate for the end point of this path segment.

Returns

SVGPathSegLinetoVerticalRel

A stand-alone, parentless SVGPathSegLinetoVerticalRel object.

CreateSVGPathSegMovetoAbs(float, float)

Returns a stand-alone, parentless SVGPathSegMovetoAbs object.

[DOMName("createSVGPathSegMovetoAbs")]
public SVGPathSegMovetoAbs CreateSVGPathSegMovetoAbs(float x, float y)

Parameters

x float

The absolute X coordinate for the end point of this path segment.

y float

The absolute Y coordinate for the end point of this path segment.

Returns

SVGPathSegMovetoAbs

A stand-alone, parentless SVGPathSegMovetoAbs object.

CreateSVGPathSegMovetoRel(float, float)

Returns a stand-alone, parentless SVGPathSegMovetoRel object.

[DOMName("createSVGPathSegMovetoRel")]
public SVGPathSegMovetoRel CreateSVGPathSegMovetoRel(float x, float y)

Parameters

x float

The relative X coordinate for the end point of this path segment.

y float

The relative Y coordinate for the end point of this path segment.

Returns

SVGPathSegMovetoRel

A stand-alone, parentless SVGPathSegMovetoRel object.

See Also

SVGGeometryElement, ISVGAnimatedPathData