Class SVGPoint
Namespace: Aspose.Html.Dom.Svg.DataTypes
Assembly: Aspose.HTML.dll (25.2.0)
Many of the SVG DOM interfaces refer to objects of class SVGPoint. An SVGPoint is an (x, y) coordinate pair. When used in matrix operations, an SVGPoint is treated as a vector of the form: [x] [y] [1] If an SVGRect object is designated as read only, then attempting to assign to one of its attributes will result in an exception being thrown.
[DOMObject]
[ComVisible(true)]
[DOMName("SVGPoint")]
public class SVGPoint : SVGValueType, INotifyPropertyChanged, IDisposable
Inheritance
object ← DOMObject ← SVGValueType ← SVGPoint
Implements
INotifyPropertyChanged, IDisposable
Inherited Members
SVGValueType.Dispose(), SVGValueType.Dispose(bool), DOMObject.GetPlatformType(), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
X
The X coordinate.
[DOMName("x")]
public float X { get; set; }
Property Value
Exceptions
Code Aspose.Html.Dom.DOMException.NO_MODIFICATION_ALLOWED_ERR. Raised if the SVGPoint object is read only, or corresponds to a DOM attribute that is read only.
Y
The Y coordinate.
[DOMName("y")]
public float Y { get; set; }
Property Value
Exceptions
Code Aspose.Html.Dom.DOMException.NO_MODIFICATION_ALLOWED_ERR. Raised if the SVGPoint object is read only, or corresponds to a DOM attribute that is read only.
Methods
MatrixTransform(SVGMatrix)
Applies a 2x3 matrix transformation on this SVGPoint object and returns a new, transformed SVGPoint object: newpoint = matrix* thispoint
[DOMName("matrixTransform")]
public SVGPoint MatrixTransform(SVGMatrix matrix)
Parameters
matrix
SVGMatrix
he matrix which is to be applied to this SVGPoint object.
Returns
A new SVGPoint object.
ToString()
Returns a System.String that represents this instance.
public override string ToString()
Returns
A System.String that represents this instance.