SVGPreserveAspectRatio Class

SVGPreserveAspectRatio class

The SVGPreserveAspectRatio interface corresponds to the ‘preserveAspectRatio’ attribute, which is available for some of SVG’s elements.

public class SVGPreserveAspectRatio : SVGValueType

Properties

NameDescription
Align { get; set; }The type of the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO_* constants defined on this interface.
MeetOrSlice { get; set; }The type of the meet-or-slice value as specified by one of the SVG_MEETORSLICE_* constants defined on this interface.

Methods

NameDescription
Dispose()Releases unmanaged and - optionally - managed resources.
virtual GetPlatformType()This method is used to retrieve the ECMAScript object .
override ToString()Returns a String that represents this instance.

Fields

NameDescription
const SVG_MEETORSLICE_MEETCorresponds to value ‘meet’ for attribute ‘preserveAspectRatio’.
const SVG_MEETORSLICE_SLICECorresponds to value ‘slice’ for attribute ‘preserveAspectRatio’.
const SVG_MEETORSLICE_UNKNOWNThe 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.
const SVG_PRESERVEASPECTRATIO_NONECorresponds to value ’none’ for attribute ‘preserveAspectRatio’.
const SVG_PRESERVEASPECTRATIO_UNKNOWNThe 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.
const SVG_PRESERVEASPECTRATIO_XMAXYMAXCorresponds to value ‘xMaxYMax’ for attribute ‘preserveAspectRatio’.
const SVG_PRESERVEASPECTRATIO_XMAXYMIDCorresponds to value ‘xMaxYMid’ for attribute ‘preserveAspectRatio’.
const SVG_PRESERVEASPECTRATIO_XMAXYMINCorresponds to value ‘xMaxYMin’ for attribute ‘preserveAspectRatio’.
const SVG_PRESERVEASPECTRATIO_XMIDYMAXCorresponds to value ‘xMidYMax’ for attribute ‘preserveAspectRatio’.
const SVG_PRESERVEASPECTRATIO_XMIDYMIDCorresponds to value ‘xMidYMid’ for attribute ‘preserveAspectRatio’.
const SVG_PRESERVEASPECTRATIO_XMIDYMINCorresponds to value ‘xMidYMin’ for attribute ‘preserveAspectRatio’.
const SVG_PRESERVEASPECTRATIO_XMINYMAXCorresponds to value ‘xMinYMax’ for attribute ‘preserveAspectRatio’.
const SVG_PRESERVEASPECTRATIO_XMINYMIDCorresponds to value ‘XMinYMid’ for attribute ‘preserveAspectRatio’.
const SVG_PRESERVEASPECTRATIO_XMINYMINCorresponds to value ‘xMinYMin’ for attribute ‘preserveAspectRatio’.

See Also