VML Stroke Element

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.

Defines a stroke for a shape.

The following attributes modify a stroke.

Attribute Description
AltHRef Specifies an alternate reference for a stroke.
Color Defines the color of a stroke.
Color2 Defines a second color for a stroke.
DashStyle Specifies the dot and dash pattern for a stroke.
EndArrow Defines an arrowhead style for the end of a stroke.
EndArrowLength Defines an arrowhead length for the end of a stroke.
EndArrowWidth Defines an arrowhead width for the end of a stroke.
EndCap Defines the cap style for the end of a stroke.
FillType Defines the type of fill used for the background of a stroke.
HRef Defines the URL to the original image for the stroke.
ID Defines a unique identifier for the stroke.
ImageAlignShape Determines the alignment of a stroke image.
ImageAspect Defines how the stroke image aspect ratio will be preserved.
ImageSize Defines the size of the image for the stroke.
JoinStyle Defines the join style of a polyline.
LineStyle Defines the line style of a stroke.
MiterLimit Defines the smoothness of a miter joint.
On Determines whether the stroke will be displayed.
Opacity Defines the amount of transparency of a stroke.
Src Defines the source image to load for a stroke fill.
StartArrow Defines the arrowhead for the start of a stroke.
StartArrowLength Defines the arrowhead length for the start of a stroke.
StartArrowWidth Defines the arrowhead width for the start of a stroke.
Title Defines the title of a stroke.
Weight Defines the thickness of a stroke.

 

Remarks

This element must be defined within a Shape element.

The following code shows how the Stroke element can be used to modify a line.



   <v:line
   to="300pt,50pt" from="50pt,50pt">
   <v:stroke weight="50pt" color="red" linestyle="ThickThin"/>
   </v:line>


Examples

 

 

Send comments about this topic to Microsoft

Build date: 2/7/2012

Community Additions

ADD
Show: