## SVGPreserveAspectRatio class

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

```java
public class SVGPreserveAspectRatio : SVGValueType
```

## Properties

| Name | Description |
| --- | --- |
[getAlign]
[setAlign] The type of the alignment value as specified by one of the SVG_PRESERVEASPECTRATIO_* constants defined on this interface. |
[getMeetOrSlice]
[setMeetOrSlice] The type of the meet-or-slice value as specified by one of the SVG_MEETORSLICE_* constants defined on this interface. |

## Methods

| Name | Description |
| --- | --- |
| [dispose](../../com.aspose.html.dom.svg.datatypes/svgvaluetype/dispose/)() | Releases unmanaged and - optionally - managed resources. |
| [getPlatformType](../../com.aspose.html.dom/domobject/getplatformtype/)() | This method is used to retrieve the ECMAScript object . |
| [toString](../../com.aspose.html.dom.svg.datatypes/svgpreserveaspectratio/toString/)() | Returns a String that represents this instance. |

## Fields

| Name | Description |
| --- | --- |
| const [SVG_MEETORSLICE_MEET](../../com.aspose.html.dom.svg.datatypes/svgpreserveaspectratio/svg_meetorslice_meet/) | Corresponds to value 'meet' for attribute ‘preserveAspectRatio’. |
| const [SVG_MEETORSLICE_SLICE](../../com.aspose.html.dom.svg.datatypes/svgpreserveaspectratio/svg_meetorslice_slice/) | Corresponds to value 'slice' for attribute ‘preserveAspectRatio’. |
| const [SVG_MEETORSLICE_UNKNOWN](../../com.aspose.html.dom.svg.datatypes/svgpreserveaspectratio/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. |
| const [SVG_PRESERVEASPECTRATIO_NONE](../../com.aspose.html.dom.svg.datatypes/svgpreserveaspectratio/svg_preserveaspectratio_none/) | Corresponds to value 'none' for attribute ‘preserveAspectRatio’. |
| const [SVG_PRESERVEASPECTRATIO_UNKNOWN](../../com.aspose.html.dom.svg.datatypes/svgpreserveaspectratio/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. |
| const [SVG_PRESERVEASPECTRATIO_XMAXYMAX](../../com.aspose.html.dom.svg.datatypes/svgpreserveaspectratio/svg_preserveaspectratio_xmaxymax/) | Corresponds to value 'xMaxYMax' for attribute ‘preserveAspectRatio’. |
| const [SVG_PRESERVEASPECTRATIO_XMAXYMID](../../com.aspose.html.dom.svg.datatypes/svgpreserveaspectratio/svg_preserveaspectratio_xmaxymid/) | Corresponds to value 'xMaxYMid' for attribute ‘preserveAspectRatio’. |
| const [SVG_PRESERVEASPECTRATIO_XMAXYMIN](../../com.aspose.html.dom.svg.datatypes/svgpreserveaspectratio/svg_preserveaspectratio_xmaxymin/) | Corresponds to value 'xMaxYMin' for attribute ‘preserveAspectRatio’. |
| const [SVG_PRESERVEASPECTRATIO_XMIDYMAX](../../com.aspose.html.dom.svg.datatypes/svgpreserveaspectratio/svg_preserveaspectratio_xmidymax/) | Corresponds to value 'xMidYMax' for attribute ‘preserveAspectRatio’. |
| const [SVG_PRESERVEASPECTRATIO_XMIDYMID](../../com.aspose.html.dom.svg.datatypes/svgpreserveaspectratio/svg_preserveaspectratio_xmidymid/) | Corresponds to value 'xMidYMid' for attribute ‘preserveAspectRatio’. |
| const [SVG_PRESERVEASPECTRATIO_XMIDYMIN](../../com.aspose.html.dom.svg.datatypes/svgpreserveaspectratio/svg_preserveaspectratio_xmidymin/) | Corresponds to value 'xMidYMin' for attribute ‘preserveAspectRatio’. |
| const [SVG_PRESERVEASPECTRATIO_XMINYMAX](../../com.aspose.html.dom.svg.datatypes/svgpreserveaspectratio/svg_preserveaspectratio_xminymax/) | Corresponds to value 'xMinYMax' for attribute ‘preserveAspectRatio’. |
| const [SVG_PRESERVEASPECTRATIO_XMINYMID](../../com.aspose.html.dom.svg.datatypes/svgpreserveaspectratio/svg_preserveaspectratio_xminymid/) | Corresponds to value 'XMinYMid' for attribute ‘preserveAspectRatio’. |
| const [SVG_PRESERVEASPECTRATIO_XMINYMIN](../../com.aspose.html.dom.svg.datatypes/svgpreserveaspectratio/svg_preserveaspectratio_xminymin/) | Corresponds to value 'xMinYMin' for attribute ‘preserveAspectRatio’. |

### See Also

* class [SVGValueType](../svgvaluetype/)
* package [com.aspose.html.dom.svg.datatypes](../../com.aspose.html.dom.svg.datatypes/)
* package [Aspose.HTML](../../)
