svgPreserveAspectRatioAlignType enumeration

Defines the alignment types for the SVGPreserveAspectRatio property.

Syntax


typedef enum _svgPreserveAspectRatioAlignType { 
  SVG_PRESERVEASPECTRATIO_UNKNOWN      = 0,
  SVG_PRESERVEASPECTRATIO_NONE         = 1,
  SVG_PRESERVEASPECTRATIO_XMINYMIN     = 2,
  SVG_PRESERVEASPECTRATIO_XMIDYMIN     = 3,
  SVG_PRESERVEASPECTRATIO_XMAXYMIN     = 4,
  SVG_PRESERVEASPECTRATIO_XMINYMID     = 5,
  SVG_PRESERVEASPECTRATIO_XMIDYMID     = 6,
  SVG_PRESERVEASPECTRATIO_XMAXYMID     = 7,
  SVG_PRESERVEASPECTRATIO_XMINYMAX     = 8,
  SVG_PRESERVEASPECTRATIO_XMIDYMAX     = 9,
  SVG_PRESERVEASPECTRATIO_XMAXYMAX     = 10,
  svgPreserveAspectRatioAlignType_Max  = 2147483647L
} svgPreserveAspectRatioAlignType;

Constants

SVG_PRESERVEASPECTRATIO_UNKNOWN

The value is not one of the predefined types.

SVG_PRESERVEASPECTRATIO_NONE

Do not force uniform scaling. Scale the graphic content of the given element non-uniformly if necessary such that the element's bounding box exactly matches the viewport rectangle.

SVG_PRESERVEASPECTRATIO_XMINYMIN

Force uniform scaling. Align the min-x of the element's viewBox attribute with the smallest X value of the viewport. Align the min-y of the element's viewBox attribute with the smallest Y value of the viewport.

SVG_PRESERVEASPECTRATIO_XMIDYMIN

Force uniform scaling. Align the midpoint X value of the element's viewBox attribute with the midpoint X value of the viewport. Align the min-y of the element's viewBox attribute with the smallest Y value of the viewport.

SVG_PRESERVEASPECTRATIO_XMAXYMIN

XMaxYMin - Force uniform scaling.Align the min-x + width of the element's viewBox with the maximum X value of the viewport. Align the min-y of the element's viewBox with the smallest Y value of the viewport.

SVG_PRESERVEASPECTRATIO_XMINYMID

Force uniform scaling. Align the min-x of the element's viewBox attribute with the smallest X value of the viewport. Align the midpoint Y value of the element's viewBox attribute with the midpoint Y value of the viewport.

SVG_PRESERVEASPECTRATIO_XMIDYMID

(Default) Force uniform scaling. Align the midpoint X value of the element's viewBox attribute with the midpoint X value of the viewport. Align the midpoint Y value of the element's viewBox attribute with the midpoint Y value of the viewport.

SVG_PRESERVEASPECTRATIO_XMAXYMID

Force uniform scaling. Align the min-x + width of the element's viewBox with the maximum X value of the viewport. Align the midpoint Y value of the element's viewBox attribute with the midpoint Y value of the viewport.

SVG_PRESERVEASPECTRATIO_XMINYMAX

Force uniform scaling. Align the min-x of the element's viewBox attribute with the smallest X value of the viewport. Align the min-y + height of the element's viewBox attribute with the maximum Y value of the viewport.

SVG_PRESERVEASPECTRATIO_XMIDYMAX

Force uniform scaling. Align the midpoint X value of the element's viewBox attribute with the midpoint X value of the viewport. Align the min-y + height of the element's viewBox attribute with the maximum Y value of the viewport.

SVG_PRESERVEASPECTRATIO_XMAXYMAX

Force uniform scaling. Align the min-x + width of the element's viewBox with the maximum X value of the viewport. Align the min-y + height of the element's viewBox attribute with the maximum Y value of the viewport.

svgPreserveAspectRatioAlignType_Max

Reserved

Requirements

Minimum supported client

Windows Vista with SP1, Windows 7

Minimum supported server

Windows Server 2008 R2

Header

Mshtml.h

IDL

Mshtml.idl

 

 

Show:
© 2014 Microsoft