VML Group 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 group that can be used to collect shapes.

This element supports the same attributes as a shape, except for the following:

  • hidden
  • type
  • adj
  • path
  • spid
  • opacity
  • chromakey
  • stroked
  • strokecolor
  • strokeweight
  • filled
  • fillcolor
  • spt
  • ruleinitiator
  • ruleproxy
  • connectortype
  • bwmode
  • bwpure
  • bwnormal
  • forcedash
  • oleicon
  • preferrelative
  • ole

Only the following subelements can be used with Group.

  • Group
  • Shapetype
  • Shape
  • Lock


The following example shows how to define a group.

<!-- 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:group id="group1" style="left:10px;top:10px;width:50px;height:50px;"
  coordorigin="0,0" coordsize="6000,6000">

<v:shape id="_x0000_s2051"
  fillcolor="#bcbcd6" stroked="f">
  <v:path arrowok="t"/>

 <v:shape id="_x0000_s2052" style='position:relative;left:314.625pt;
  top:140.5pt;width:104pt;height:102pt' coordsize="1663,1633"
  fillcolor="#99ebff" stroked="f">
  <v:path arrowok="t"/>


Show Me

Send comments about this topic to Microsoft

Build date: 2/7/2012