VML CoordSize Attribute

This topic describes VML, a feature that is deprecated as of Windows Internet Explorer 9. Webpages and applications that rely on VML should be migrated to SVG or other widely supported standards.

Note As of December 2011, this topic has been archived. As a result, it is no longer actively maintained. For more information, see Archived Content. For information, recommendations, and guidance regarding the current version of Windows Internet Explorer, see Internet Explorer Developer Center.

Specifies the horizontal and vertical units of the rectangle that bounds a shape. Read/write. IVgVector2D.

Applies To


Tag Syntax

<v: element coordsize=" expression ">

Script Syntax

element .coordsize="expression"



If not specified, the coordinate size is the same as the bounding box of the shape.

Note that this attribute is a vector and that the units are relative to the length and width of the bounding rectangle.

Also note that mapping between coordsize and the bounding box can be made anisotropic. Make sure that the coordsize width and coordsize height is the same as the style width and height if you don't want to distort the shape.

In scripting, because this is a 2-D vector, you can access the x and y values separately, and can also determine the type of units expected.

VML Standard Attribute


The shape is 100 points high and 100 points wide, but each horizontal and vertical unit in the coordinate space is 1/10 of a point.

   <v:shape id="rect01"
   fillcolor="red" strokecolor="red"
   coordorigin="0 0" coordsize="1000 1000"
   path="m 1,1 l 1,200, 200,200, 200,1 x e">

CoordSize Attribute Example. (Requires Microsoft Internet Explorer 5 or greater.)

Send comments about this topic to Microsoft

Build date: 2/7/2012