VML StrokeWeight 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.
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.
Defines the brush thickness that strokes the path of a shape. Read/write. VGLength.
<v: element strokeweight=" expression ">
The value is duplicated from the Weight attribute of the Stroke element. If a number is specified, but no units are added, the default unit of measurement is the Emu. If no value is specified, the default is 1 pixel (1px).
For scripting, however, the default unit of measurement is in points.
VML Standard Attribute
The stroke weight of the shape is 1 point.
<v:shape id="rect01" strokeweight="1pt" strokecolor="red" fillcolor="white" coordorigin="0 0" coordsize="200 200" style="position:relative;top:1;left:1;width:20;height:20" path="m 1,1 l 1,200, 200,200, 200,1 x e"> </v:shape>
StrokeWeight Attribute Example. (Requires Microsoft Internet Explorer 5 or greater.)