File: vixmlconWorkingWithGeom.htm

package info (click to toggle)
office2003-schemas 1.0%2Bds-1
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm, forky, sid, trixie
  • size: 42,304 kB
  • sloc: javascript: 2,429; makefile: 29
file content (22 lines) | stat: -rw-r--r-- 3,178 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<html dir="ltr"><head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META HTTP-EQUIV="assetid" CONTENT="HV01086435"><META NAME="lcid" CONTENT="1033"><title>Working with Geometry in DatadiagramML</title><link rel="stylesheet" type="text/css" href="office10.css"><script type="text/javascript" language="Javascript" src="ExpCollapse.js"></script><script type="text/javascript" language="JavaScript" src="inline.js"></script></head><body><h1>Working with Geometry in DatadiagramML</h1><p>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.</p><p>The elements that represent rows in the Geometry section of the ShapeSheet<nbsp />— for example, <b class="bterm">MoveTo</b> or <b class="bterm">LineTo</b> elements<nbsp />— are children of the <b class="bterm">Geom</b> element.</p><p><b class="bterm">Geom</b> elements have two optional attributes:</p><p><ul>
					<li>The <b class="bterm">IX</b> attribute, which specifies the index of the element within the parent element. The value of the <b class="bterm">IX</b> attribute in geometry elements is 1-based.</li>
					<li>The <b class="bterm">Del</b> attribute. The attribute's value, 1, indicates that the element has been deleted locally.</li>
				</ul></p><h2>Local deletion</h2><p>Just like you can delete any element that represents a sheet row or a section, you can locally delete a <b class="bterm">Geom</b> element or any of the row elements that are children of the <b class="bterm">Geom</b> element.</p><p>Consider the following example. The <b class="bterm">Master</b> element contains three <b class="bterm">Geom</b> elements, each representing a polygon:</p><pre><code>&lt;Master ID='0'&gt;
   ...
   &lt;Geom IX='0'&gt; ... &lt;/Geom&gt;
   &lt;Geom IX='1'&gt; ... &lt;/Geom&gt;
   &lt;Geom IX='2'&gt; ... &lt;/Geom&gt;
   ...
&lt;/Master&gt;</code></pre><p>When it is displayed, the master looks as follows:</p><p><img border="0" src="../img/XML_02.gif" alt="A Master element that contains three Geom elements, each representing a different polygon (square, circle, triangle)"></p><p>The following code example demonstrates how an instance of the master can locally delete one of the <b class="bterm">Geom</b> elements:</p><pre><code>&lt;Shape ID='99' Master='0'&gt;
   ...
   &lt;Geom IX='2' Del='1'&gt;
   ...
&lt;/Shape&gt;</code></pre><p>When displayed, the instance looks as follows:</p><p><img border="0" src="../img/XML_03.gif" alt="An instance shape of a master with one Geom element deleted locally. Now only the square and circle remain."></p><center><a href="XMLSchemaCopyright_HV01147162.htm">&copy;2003-2004 Microsoft Corporation. All rights reserved.</a>  

Permission to copy, display and distribute this document is available at: <a 

href="http://r.office.microsoft.com/r/rlidAWSContentRedir?AssetID=XT010988631033&amp;CTT=11&amp;Origin=HV011232471033" 

target="_new">http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp</a></center></body></html>