Custom Shape Example (VML)


Purpose

This example shows how to use the Path child element to create a custom VML 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:shape style="width:250;height:250;" strokecolor="red" strokeweight="1.5pt" 
  fillcolor="blue" coordorigin="0 0" coordsize="200 200">
  <v:path v="m 8,65 l 72,65,92,11,112,65,174,65,122,100,142,155,92,121,42,155,60,100xe" />
</v:shape>