File: vixmlelemSortKey.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 (77 lines) | stat: -rw-r--r-- 6,292 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<html dir="ltr"><head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META HTTP-EQUIV="assetid" CONTENT="HV01085672"><META NAME="lcid" CONTENT="1033"><title>SortKey Element</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>SortKey Element</h1><p>
			<p>When the <b class="bterm">SortKey</b> element is contained in a <b class="bterm">Act</b> element, it specifies a number that determines the order of actions that appear on a shortcut or smart tag menu.</p><p>When the <b class="bterm">SortKey</b> element is contained in a <b class="bterm">Hyperlink</b> element, it specifies a number that determines the order of hyperlinks that appear on a shortcut menu.</p>
			<p>When the <b class="bterm">SortKey</b> element is contained in a <b class="bterm">Prop</b> element, it specifies a key that determines the order in which custom properties are listed in the application's user interface.</p></p><h2>Syntax</h2><pre><code>
&lt;SortKey&gt;
    [Unit]
    [F]
    [Err]
    [V]&gt;
&lt;/SortKey&gt;
</code></pre><h2>Attributes</h2><p>
			<b class="bterm">Unit</b>
		</p><p>Optional string. Represents a unit of measure. The default is STR. For details about STR, see <a href="vixmlconUnitsOfMeasure.htm" id="HV83150825" lcid=" ">Units of measure</a>.</p><p><b class="bterm">F</b></p><p>Optional string. Represents the element's formula. This attribute can contain one of the following strings: "<i>someFormula</i>" if the formula exists locally, "No Formula" if the formula is locally deleted or blocked, or "Inh" if the formula is inherited.</p><p>If the attribute is not present, the element's formula is a simple constant. For example, &lt;element&gt;5&lt;/element&gt;. 

</p><p><b class="bterm">Err</b></p><p>Optional string. Indicates that the formula evaluates to an error. The value of <b class="bterm">Err</b> is the current value (an error message string); the value of the element is the last valid value.</p><p><b class="bterm">V</b></p><p>Optional string. Represents the null string condition for a string cell value. In some cases it is helpful to distinguish between an empty string cell null and a null string cell value. This attribute is used to distinguish between these forms of an empty value.

</p><h2>Element properties</h2><table><tr><th>Property</th><th>Value</th></tr>
			<tr><td>Name</td><td>SortKey&nbsp;</td></tr>
			<tr><td>Minimum Occurrences</td><td>0&nbsp;</td></tr>
			<tr><td>Maximum Occurrences</td><td>1&nbsp;</td></tr>
		</table><h2>Element information</h2><p><b class="bterm">Parent elements</b></p><p><a href="vixmlelemAct.htm" id="HV01085288" lcid=""><b class="bterm">Act</b></a></p><p><a href="vixmlelemProp.htm" id="HV01085611" lcid=""><b class="bterm">Prop</b></a></p><p><a href="vixmlelemHyperlink.htm" id="HV01085463" lcid=""><b class="bterm">Hyperlink</b></a></p><p><b class="bterm">Child elements</b></p><p>None</p><h2>Remarks</h2><p><p>The actions on a smart tag or shortcut menu appear on the menu sorted from lowest to highest, with lower numbers appearing at the top of the menu. If two action elements have the same <b class="bterm">SortKey</b> element value, the order is determined by physical row order. The default is 0 (zero).    </p><p>The hyperlinks on a shortcut menu appear on the menu sorted from lowest to highest, with lower numbers appearing at the top of the menu. If two hyperlink elements have the same <b class="bterm">SortKey</b> element value, the order is determined by physical row order. The default is 0 (zero).</p>
			<p>The comparison of sort keys for custom properties is locale-specific, case insensitive, and descending.</p>
			<p>For example, the following sort keys can be used to display the custom properties elements in the user interface in the following order: Item Number, Quantity, Price</p>
			<table>
				<tr>
					<th>
						<b class="bterm">Prop element name</b>
					</th>
					<th>
						<b class="bterm">Label</b>
					</th>
					<th>
						<b class="bterm">Sort key</b>
					</th>
				</tr>
				<tr>
					<td>
						<p>Prop.Item</p>
					</td>
					<td>
						<p>Item Number</p>
					</td>
					<td>
						<p>1</p>
					</td>
				</tr>
				<tr>
					<td>
						<p>Prop.Price</p>
					</td>
					<td>
						<p>Price</p>
					</td>
					<td>
						<p>3</p>
					</td>
				</tr>
				<tr>
					<td>
						<p>Prop.Quan</p>
					</td>
					<td>
						<p>Quantity</p>
					</td>
					<td>
						<p>2</p>
					</td>
				</tr>
			</table><p>The <b class="bterm">SortKey</b> element is relevant only when contained in a <a href="vixmlelemDocumentSheet.htm" id="HV01085388" lcid=" "><b class="bterm">DocumentSheet</b></a>, <a href="vixmlelemPageSheet.htm" id="HV01085573" lcid=" "><b class="bterm">PageSheet</b></a>, or <a href="vixmlelemShape.htm" id="HV01085631" lcid=" "><b class="bterm">Shape</b></a> element. It is ignored when contained in a <a href="vixmlelemStyleSheet.htm" id="HV01085684" lcid=" "><b class="bterm">StyleSheet</b></a> element.</p>
		</p><h2>See also</h2><p><a target="_blank" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vissdk11/html/vicelSortKeyActions.asp" id="HV01027286" lcid=" ">SortKey</a> cell (Actions section)</p><p><a target="_blank" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vissdk11/html/DSS_Cells_(Q-S)_1345.asp" id="HV82251345" lcid=" ">SortKey</a> cell (Custom Properties section)</p><p><a target="_blank" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vissdk11/html/vicelSortKeyHyperlinks.asp" id="HV01033756" lcid=" ">SortKey</a> cell (Hyperlinks section)</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>