1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
<html dir="ltr"><head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META HTTP-EQUIV="assetid" CONTENT="HV01021557"><META NAME="lcid" CONTENT="1033"><title>icon Attribute</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>icon Attribute</h1><div class="ofvbanav"><span class="ofvbanavreuse" id="seealso" onclick="toggleList()" onkeypress="toggleList()"></span><span class="ofvbanavreuse" id="parentelements" onclick="toggleList()" onkeypress="toggleList()"></span></div><p>Provides a <a href="#" class="glossary" onclick="AppendPopup(this,'ofURL')" onkeypress="AppendPopup(this,'ofURL')">Uniform Resource Locator (URL)</a> to a bitmap (.bmp) or graphics interchange format (.gif) file, which is used for the button or menu item.</p><h2>Type</h2><p><pre><code>xsd:string</code></pre></p><h2>Remarks</h2><p>The <b class="bterm">icon</b> attribute is an optional attribute of the <b class="bterm"><a href="xsfelmbutton.htm" id="HV01021461" lcid=" ">button</a></b> element.</p><p> If an icon is not specified, the caption alone will be used. If both caption and icon are specified, both will be displayed. Alternatively, the value can also be an ID, allowing access to internal system icons. If the value is an integer, it will be interpreted as an ID.</p><h2><a id="#example" name="#example">Example</a></h2><p>The following is an example of the <b class="bterm">icon</b> attribute as it is used in the <b class="bterm">button</b> element:</p><pre><code><xsf:menuArea name="msoInsertMenu">
<xsf:menu caption="&amp;Section">
<xsf:button action="xCollection::insert" xmlToEdit="CD_10"
caption="CD" <b class="bterm">icon</b>="cd.bmp" showIf="always"></xsf:button>
<xsf:button action="xCollection::insert" xmlToEdit="Track_14"
caption="Track" <b class="bterm">icon</b>="track.bmp" showIf="always"></xsf:button>
<xsf:button action="xOptional::insert" xmlToEdit="Label_16"
caption="Label" <b class="bterm">icon</b>="label.bmp"></xsf:button>
</xsf:menu>
</xsf:menuArea></code></pre><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/xsfatricon_l.htm"></iframe></span><center><a href="XMLSchemaCopyright_HV01147162.htm">©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&CTT=11&Origin=HV011232471033"
target="_new">http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp</a></center></body></html>
|