SvgPreserveAspectRatio Class

https://svgwg.org/svg2-draft/coords.html#InterfaceSVGPreserveAspectRatio

public sealed class SvgPreserveAspectRatio

Properties

NameDescription
AlignGets or sets the alignment, one of the SVG_PRESERVEASPECTRATIO_* constants.
MeetOrSliceGets or sets whether the viewBox is fitted (meet) or covers the viewport (slice), one of the SVG_MEETORSLICE_* constants.

Gets or sets the alignment, one of the SVG_PRESERVEASPECTRATIO_* constants.

public ushort Align { get; set; }

MeetOrSlice

SvgValues.cs

Gets 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

NameDescription
SvgMeetOrSliceMeetThe meet value: the viewBox is scaled to fit entirely in the viewport.
SvgMeetOrSliceSliceThe slice value: the viewBox is scaled to cover the entire viewport.
SvgMeetOrSliceUnknownThe meet-or-slice value is not one of the predefined values.
SvgPreserveAspectRatioNoneNo uniform scaling: the none alignment.
SvgPreserveAspectRatioUnknownThe alignment is not one of the predefined values.
SvgPreserveAspectRatioXMaxYMaxThe xMaxYMax alignment.
SvgPreserveAspectRatioXMaxYMidThe xMaxYMid alignment.
SvgPreserveAspectRatioXMaxYMinThe xMaxYMin alignment.
SvgPreserveAspectRatioXMidYMaxThe xMidYMax alignment.
SvgPreserveAspectRatioXMidYMidThe xMidYMid alignment.
SvgPreserveAspectRatioXMidYMinThe xMidYMin alignment.
SvgPreserveAspectRatioXMinYMaxThe xMinYMax alignment.
SvgPreserveAspectRatioXMinYMidThe xMinYMid alignment.
SvgPreserveAspectRatioXMinYMinThe xMinYMin alignment.

SvgMeetOrSliceMeet

The meet value: the viewBox is scaled to fit entirely in the viewport.

public const ushort SvgMeetOrSliceMeet = 1

SvgMeetOrSliceSlice

The slice value: the viewBox is scaled to cover the entire viewport.

public const ushort SvgMeetOrSliceSlice = 2

SvgMeetOrSliceUnknown

The meet-or-slice value is not one of the predefined values.

public const ushort SvgMeetOrSliceUnknown = 0

SvgPreserveAspectRatioNone

No uniform scaling: the none alignment.

public const ushort SvgPreserveAspectRatioNone = 1

SvgPreserveAspectRatioUnknown

The alignment is not one of the predefined values.

public const ushort SvgPreserveAspectRatioUnknown = 0

SvgPreserveAspectRatioXMaxYMax

The xMaxYMax alignment.

public const ushort SvgPreserveAspectRatioXMaxYMax = 10

SvgPreserveAspectRatioXMaxYMid

SvgPreserveAspectRatioXMaxYMin

SvgPreserveAspectRatioXMidYMax

SvgPreserveAspectRatioXMidYMid

SvgPreserveAspectRatioXMidYMin

SvgPreserveAspectRatioXMinYMax

SvgPreserveAspectRatioXMinYMid

SvgPreserveAspectRatioXMinYMin