AspectRatioAlign Enum

AspectRatioAlign enumeration

Specifies alignment types for the ‘preserveAspectRatio’ attribute in SVG.

public enum AspectRatioAlign

Values

NameValueDescription
None0Indicates that no uniform scaling is applied; the aspect ratio is not preserved.
XMinYMin1Aligns the minimum X and minimum Y of the viewBox with the smallest X and Y values of the viewport.
XMidYMin2Aligns the midpoint X and minimum Y of the viewBox with the midpoint X and smallest Y value of the viewport.
XMaxYMin3Aligns the maximum X and minimum Y of the viewBox with the largest X and smallest Y value of the viewport.
XMinYMid4Aligns the minimum X and midpoint Y of the viewBox with the smallest X and midpoint Y value of the viewport.
XMidYMid5Aligns the midpoint X and Y of the viewBox with the midpoint X and Y of the viewport.
XMaxYMid6Aligns the maximum X and midpoint Y of the viewBox with the largest X and midpoint Y value of the viewport.
XMinYMax7Aligns the minimum X and maximum Y of the viewBox with the smallest X and largest Y value of the viewport.
XMidYMax8Aligns the midpoint X and maximum Y of the viewBox with the midpoint X and largest Y value of the viewport.
XMaxYMax9Aligns the maximum X and maximum Y of the viewBox with the largest X and Y values of the viewport.

See Also