CoordSize Attribute Example (VML)


Purpose

This example uses the CoordSize attribute to set the scale for expressing the coordinates of other attributes in a 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="left:10pt;top:5pt;width:100pt;height:100pt;"
  coordsize="21600, 21600" path="m10800,0l0,10800,10800,21600,21600,10800xe" 
  fillcolor="red" strokecolor="blue" strokeweight="2pt">
</v:shape>