Class SVGPreserveAspectRatio
Namespace: Aspose.Html.Dom.Svg.DataTypes
Assembly: Aspose.HTML.dll (25.2.0)
The SVGPreserveAspectRatio interface corresponds to the ‘preserveAspectRatio’ attribute, which is available for some of SVG’s elements.
[ComVisible(true)]
[DOMObject]
[DOMName("SVGPreserveAspectRatio")]
public class SVGPreserveAspectRatio : SVGValueType, INotifyPropertyChanged, IDisposable
Inheritance
object ← DOMObject ← SVGValueType ← SVGPreserveAspectRatio
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()
Fields
SVG_MEETORSLICE_MEET
Corresponds to value ‘meet’ for attribute ‘preserveAspectRatio’.
[DOMName("SVG_MEETORSLICE_MEET")]
public const ushort SVG_MEETORSLICE_MEET = 1
Field Value
SVG_MEETORSLICE_SLICE
Corresponds to value ‘slice’ for attribute ‘preserveAspectRatio’.
[DOMName("SVG_MEETORSLICE_SLICE")]
public const ushort SVG_MEETORSLICE_SLICE = 2
Field Value
SVG_MEETORSLICE_UNKNOWN
The enumeration was set to a value that is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
[DOMName("SVG_MEETORSLICE_UNKNOWN")]
public const ushort SVG_MEETORSLICE_UNKNOWN = 0
Field Value
SVG_PRESERVEASPECTRATIO_NONE
Corresponds to value ’none’ for attribute ‘preserveAspectRatio’.
[DOMName("SVG_PRESERVEASPECTRATIO_NONE")]
public const ushort SVG_PRESERVEASPECTRATIO_NONE = 1
Field Value
SVG_PRESERVEASPECTRATIO_UNKNOWN
The enumeration was set to a value that is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
[DOMName("SVG_PRESERVEASPECTRATIO_UNKNOWN")]
public const ushort SVG_PRESERVEASPECTRATIO_UNKNOWN = 0
Field Value
SVG_PRESERVEASPECTRATIO_XMAXYMAX
Corresponds to value ‘xMaxYMax’ for attribute ‘preserveAspectRatio’.
[DOMName("SVG_PRESERVEASPECTRATIO_XMAXYMAX")]
public const ushort SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10
Field Value
SVG_PRESERVEASPECTRATIO_XMAXYMID
Corresponds to value ‘xMaxYMid’ for attribute ‘preserveAspectRatio’.
[DOMName("SVG_PRESERVEASPECTRATIO_XMAXYMID")]
public const ushort SVG_PRESERVEASPECTRATIO_XMAXYMID = 7
Field Value
SVG_PRESERVEASPECTRATIO_XMAXYMIN
Corresponds to value ‘xMaxYMin’ for attribute ‘preserveAspectRatio’.
[DOMName("SVG_PRESERVEASPECTRATIO_XMAXYMIN")]
public const ushort SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4
Field Value
SVG_PRESERVEASPECTRATIO_XMIDYMAX
Corresponds to value ‘xMidYMax’ for attribute ‘preserveAspectRatio’.
[DOMName("SVG_PRESERVEASPECTRATIO_XMIDYMAX")]
public const ushort SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9
Field Value
SVG_PRESERVEASPECTRATIO_XMIDYMID
Corresponds to value ‘xMidYMid’ for attribute ‘preserveAspectRatio’.
[DOMName("SVG_PRESERVEASPECTRATIO_XMIDYMID")]
public const ushort SVG_PRESERVEASPECTRATIO_XMIDYMID = 6
Field Value
SVG_PRESERVEASPECTRATIO_XMIDYMIN
Corresponds to value ‘xMidYMin’ for attribute ‘preserveAspectRatio’.
[DOMName("SVG_PRESERVEASPECTRATIO_XMIDYMIN")]
public const ushort SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3
Field Value
SVG_PRESERVEASPECTRATIO_XMINYMAX
Corresponds to value ‘xMinYMax’ for attribute ‘preserveAspectRatio’.
[DOMName("SVG_PRESERVEASPECTRATIO_XMINYMAX")]
public const ushort SVG_PRESERVEASPECTRATIO_XMINYMAX = 8
Field Value
SVG_PRESERVEASPECTRATIO_XMINYMID
Corresponds to value ‘XMinYMid’ for attribute ‘preserveAspectRatio’.
[DOMName("SVG_PRESERVEASPECTRATIO_XMINYMID")]
public const ushort SVG_PRESERVEASPECTRATIO_XMINYMID = 5
Field Value
SVG_PRESERVEASPECTRATIO_XMINYMIN
Corresponds to value ‘xMinYMin’ for attribute ‘preserveAspectRatio’.
[DOMName("SVG_PRESERVEASPECTRATIO_XMINYMIN")]
public const ushort SVG_PRESERVEASPECTRATIO_XMINYMIN = 2
Field Value
Properties
Align
The type of the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO_* constants defined on this interface.
[DOMName("align")]
public ushort Align { get; set; }
Property Value
Exceptions
Code Aspose.Html.Dom.DOMException.NO_MODIFICATION_ALLOWED_ERR. Raised when the object corresponds to a read only attribute or when the object itself is read only.
MeetOrSlice
The type of the meet-or-slice value as specified by one of the SVG_MEETORSLICE_* constants defined on this interface.
[DOMName("meetOrSlice")]
public ushort MeetOrSlice { get; set; }
Property Value
Exceptions
Code Aspose.Html.Dom.DOMException.NO_MODIFICATION_ALLOWED_ERR. Raised when the object corresponds to a read only attribute or when the object itself is read only.
Methods
ToString()
Returns a System.String that represents this instance.
public override string ToString()
Returns
A System.String that represents this instance.