StrokeWeight Attribute | Internet Development Index |
Defines the brush thickness that strokes the path of a shape. Read/write VGLength.
Applies To
Tag Syntax
<v:element strokeweight="expression">
Script Syntax
element.strokeweight="expression"
expression=element.strokeweight
Remarks
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
See Also
Example
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.)