File: xdcolTaskPanes.htm

package info (click to toggle)
office2003-schemas 1.0%2Bds-1
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm, sid, trixie
  • size: 42,304 kB
  • sloc: javascript: 2,429; makefile: 29
file content (15 lines) | stat: -rw-r--r-- 4,679 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<html dir="ltr"><head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META HTTP-EQUIV="assetid" CONTENT="HV01021187"><META NAME="lcid" CONTENT="1033"><title>TaskPanes Collection</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><p id="ExpandAllLine" class="ExpFav"><a href="#" onclick="ExpandAll()" onkeypress="ExpandAll()" class="DropDown"><img id="picHeader" border="0" src="expandtri.gif" alt="Show All"><span id="ExpandAll">Show All</span></a></p><h1>TaskPanes Collection</h1><div class="ofvbanav"><span class="ofvbanavreuse" id="seealso" onclick="toggleList()" onkeypress="toggleList()"></span><span class="ofvbanavreuse" id="properties" onclick="toggleList()" onkeypress="toggleList()"></span><span class="ofvbanavreuse" id="methods" onclick="toggleList()" onkeypress="toggleList()"></span><span class="ofvbanavreuse" id="events" onclick="toggleList()" onkeypress="toggleList()"></span><span class="ofvbanavreuse" id="specifics" onclick="toggleList()" onkeypress="toggleList()"></span></div><table class="ofvbaomart"><tr><td class="noborder" nowrap="true"><A HREF="xdcolTaskPanes.htm" title="TaskPanes"><SPAN class="omyellow" tabindex="0">TaskPanes</SPAN></A><br /><IMG SRC="../img/space.gif" BORDER="0"></IMG><IMG SRC="../img/parchild.gif" BORDER="0"></IMG><A HREF="xdobjTaskPane.htm" title="TaskPane"><SPAN class="omblue" tabindex="0">TaskPane</SPAN></A><br /></td></tr></table><p>Contains a collection of <b class="bterm"><a href="xdobjTaskPane.htm" id="HV01021246" lcid=" ">TaskPane</a></b> objects that represent the <a href="#" class="glossary" onclick="AppendPopup(this,'OfTaskPane')" onkeypress="AppendPopup(this,'OfTaskPane')">task panes</a> associated with a window in Microsoft Office InfoPath 2003.</p><h2>Remarks</h2><p>The <b class="bterm">TaskPanes</b> collection provides properties that can be used to access a collection of task pane objects, and it is accessed through the <b class="bterm"><a href="xdproTaskPanes.htm" id="HV01021341" lcid=" ">TaskPanes</a></b> property of the <b class="bterm"><a href="xdobjWindow.htm" id="HV01021252" lcid=" ">Window</a></b> object.</p><p><b>Note</b>  The <b class="bterm">TaskPanes</b> collection can be used only to get the count of <b class="bterm">TaskPane</b> objects that it contains and to return a reference to a specified <b class="bterm">TaskPane</b> object. It cannot be used to add or remove <b class="bterm">TaskPane</b> objects.</p><h2>Using the TaskPanes collection</h2><p>In the following example, the <b class="bterm">TaskPanes</b> property of the <b class="bterm">Window</b> object is used to set a reference to the <b class="bterm">TaskPanes</b> collection:</p><pre><code>var objTaskPanes;

objTaskPanes = XDocument.View.Window.<b class="bterm">TaskPanes</b>;</code></pre><p>In the following example, the <b class="bterm"><a href="xdproItem_5.htm" id="HV01021302" lcid=" ">Item</a></b> property of the <b class="bterm">TaskPanes</b> collection is used to set a reference to a specified <b class="bterm">TaskPane</b> object. Then the code uses the <b class="bterm"><a href="xdproVisible_2.htm" id="HV01021355" lcid=" ">Visible</a></b> property of the <b class="bterm">TaskPane</b> object to make the task pane visible.</p><pre><code>var objTaskPane;

// Show the built-in Help task pane.
objTaskPane = XDocument.View.Window.<b class="bterm">TaskPanes</b>(4);
objTaskPane.Visible = true;</code></pre><p><b>Note</b>  The <b class="bterm">Item</b> property argument is the type of task pane to return, based on the <b class="bterm"><a href="xdproType_2.htm" id="HV01021345" lcid=" ">Type</a></b> property of the <b class="bterm">TaskPane</b> object, not the position of the <b class="bterm">TaskPane</b> object in the <b class="bterm">TaskPanes</b> collection.</p><script type="text/javascript" language="JScript" src="ofvbanl.js"></script><span id="ofVBAISpan" class="ofvbaispan"><iframe id="ofVBAIFrame" frameborder="0" marginheight="0" marginwidth="4" scrolling="auto" width="100%" src="../links/xdcolTaskPanes_l.htm"></iframe></span><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>