Working with Geometry in DatadiagramML

All ShapeSheet sections are implied in the DatadiagramML file format with the exception of Geometry sections. This is because unlike other ShapeSheet sections, more than one Geometry section can exist in a ShapeSheet spreadsheet.

The elements that represent rows in the Geometry section of the ShapeSheet— for example, MoveTo or LineTo elements— are children of the Geom element.

Geom elements have two optional attributes:

Local deletion

Just like you can delete any element that represents a sheet row or a section, you can locally delete a Geom element or any of the row elements that are children of the Geom element.

Consider the following example. The Master element contains three Geom elements, each representing a polygon:

<Master ID='0'>
   ...
   <Geom IX='0'> ... </Geom>
   <Geom IX='1'> ... </Geom>
   <Geom IX='2'> ... </Geom>
   ...
</Master>

When it is displayed, the master looks as follows:

A Master element that contains three Geom elements, each representing a different polygon (square, circle, triangle)

The following code example demonstrates how an instance of the master can locally delete one of the Geom elements:

<Shape ID='99' Master='0'>
   ...
   <Geom IX='2' Del='1'>
   ...
</Shape>

When displayed, the instance looks as follows:

An instance shape of a master with one Geom element deleted locally. Now only the square and circle remain.

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp