SvgPreserveAspectRatio Class
https://svgwg.org/svg2-draft/coords.html#InterfaceSVGPreserveAspectRatio
public sealed class SvgPreserveAspectRatioProperties
| Name | Description |
|---|---|
| Align | Gets or sets the alignment, one of the SVG_PRESERVEASPECTRATIO_* constants. |
| MeetOrSlice | Gets or sets whether the viewBox is fitted (meet) or covers the viewport (slice), one of the SVG_MEETORSLICE_* constants. |
Align
SvgValues.csGets or sets the alignment, one of the SVG_PRESERVEASPECTRATIO_* constants.
public ushort Align { get; set; }MeetOrSlice
SvgValues.csGets or sets whether the viewBox is fitted (meet) or covers the viewport (slice), one of the SVG_MEETORSLICE_* constants.
public ushort MeetOrSlice { get; set; }Constants
| Name | Description |
|---|---|
| SvgMeetOrSliceMeet | The meet value: the viewBox is scaled to fit entirely in the viewport. |
| SvgMeetOrSliceSlice | The slice value: the viewBox is scaled to cover the entire viewport. |
| SvgMeetOrSliceUnknown | The meet-or-slice value is not one of the predefined values. |
| SvgPreserveAspectRatioNone | No uniform scaling: the none alignment. |
| SvgPreserveAspectRatioUnknown | The alignment is not one of the predefined values. |
| SvgPreserveAspectRatioXMaxYMax | The xMaxYMax alignment. |
| SvgPreserveAspectRatioXMaxYMid | The xMaxYMid alignment. |
| SvgPreserveAspectRatioXMaxYMin | The xMaxYMin alignment. |
| SvgPreserveAspectRatioXMidYMax | The xMidYMax alignment. |
| SvgPreserveAspectRatioXMidYMid | The xMidYMid alignment. |
| SvgPreserveAspectRatioXMidYMin | The xMidYMin alignment. |
| SvgPreserveAspectRatioXMinYMax | The xMinYMax alignment. |
| SvgPreserveAspectRatioXMinYMid | The xMinYMid alignment. |
| SvgPreserveAspectRatioXMinYMin | The xMinYMin alignment. |
SvgMeetOrSliceMeet
The meet value: the viewBox is scaled to fit entirely in the viewport.
public const ushort SvgMeetOrSliceMeet = 1SvgMeetOrSliceSlice
The slice value: the viewBox is scaled to cover the entire viewport.
public const ushort SvgMeetOrSliceSlice = 2SvgMeetOrSliceUnknown
The meet-or-slice value is not one of the predefined values.
public const ushort SvgMeetOrSliceUnknown = 0SvgPreserveAspectRatioNone
No uniform scaling: the none alignment.
public const ushort SvgPreserveAspectRatioNone = 1SvgPreserveAspectRatioUnknown
The alignment is not one of the predefined values.
public const ushort SvgPreserveAspectRatioUnknown = 0SvgPreserveAspectRatioXMaxYMax
The xMaxYMax alignment.
public const ushort SvgPreserveAspectRatioXMaxYMax = 10SvgPreserveAspectRatioXMaxYMid
The xMaxYMid alignment.
public const ushort SvgPreserveAspectRatioXMaxYMid = 7SvgPreserveAspectRatioXMaxYMin
The xMaxYMin alignment.
public const ushort SvgPreserveAspectRatioXMaxYMin = 4SvgPreserveAspectRatioXMidYMax
The xMidYMax alignment.
public const ushort SvgPreserveAspectRatioXMidYMax = 9SvgPreserveAspectRatioXMidYMid
The xMidYMid alignment.
public const ushort SvgPreserveAspectRatioXMidYMid = 6SvgPreserveAspectRatioXMidYMin
The xMidYMin alignment.
public const ushort SvgPreserveAspectRatioXMidYMin = 3SvgPreserveAspectRatioXMinYMax
The xMinYMax alignment.
public const ushort SvgPreserveAspectRatioXMinYMax = 8SvgPreserveAspectRatioXMinYMid
The xMinYMid alignment.
public const ushort SvgPreserveAspectRatioXMinYMid = 5SvgPreserveAspectRatioXMinYMin
The xMinYMin alignment.
public const ushort SvgPreserveAspectRatioXMinYMin = 2