Dash Dot Stroke Style Example (VML)


Purpose

This example illustrates how to use the Stroke child element to control the appearance of a VML line shape.

Example






Code

<!-- Include the VML behavior -->
<style>v\: * { behavior:url(#default#VML); display:inline-block }</style>

<!-- Declare the VML namespace -->
<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v" />

<v:line style="position:absolute;" from="20pt,20pt" to="200pt,20pt" strokecolor="red" strokeweight="2pt">
  <v:stroke dashstyle="dashdot" />
</v:line>