Command.LabelTitle 屬性

代表標籤標題。

使用方式

<Command.LabelTitle>
  child elements
</Command.LabelTitle>

屬性

沒有屬性。

子元素

元素 描述
String
最多可能發生一次

父元素

元素
命令

備註

選擇性。

每個 命令最多可能會發生一次。

Command.LabelTitle 可以包含 xs:string 類型的值,限制為任何字元序列,包括空白字元和分行符號。

注意

使用通用字元集 (UCS) XML 字元參考 &#xA; 來指定分行符號。

最大長度未系結。

如果未為 Command.LabelTitle提供任何值, 則需要 String 子項目。

注意

如果 Command.LabelTitle 同時包含值和 String 子項目, 則 String 會優先使用。

Command.LabelTitle 僅支援左對齊。

如果命令是透過功能表項目公開,而 Command.LabelTitleUI_PKEY_Label 的值會包含字母前面加上 ampersand,如下列範例所示,此字母會視為該命令的按鍵提示和功能區架構的鍵盤快速鍵。

<Command Name="cmdNew"
         Symbol="ID_FILE_NEW"
         Comment="New"
         Id="25001"
         LabelTitle="&amp;New"/>

若要在標籤中顯示 ampersand,請使用雙 amperand () && 逸出特殊字元指定,如下列範例所示。

<Command Name="cmdOpen"
         Symbol="ID_FILE_OPEN"
         Comment="Open"
         Id="25002"
         LabelTitle="&amp;&amp;Open"/>

範例

下列範例示範具有Command.LabelTitle宣告之Command元素的標記。

<Command>
  <Command.Name>cmdSave</Command.Name>
  <Command.Symbol>ID_FILE_SAVE</Command.Symbol>
  <Command.Comment>Save</Command.Comment>
  <Command.Id>25003</Command.Id>
  <Command.LabelTitle>
    <String>
      <String.Content>Label for Save</String.Content>
      <String.Id>59999</String.Id>
      <String.Symbol>strSave</String.Symbol>
    </String>
  </Command.LabelTitle>
  <Command.TooltipTitle>Tooltip title with &amp;&amp; for Save Command</Command.TooltipTitle>
  <Command.TooltipDescription>Tooltip description for Save Command.</Command.TooltipDescription>
  <Command.Keytip>s1</Command.Keytip>
</Command>

規格需求

需求
最低支援的用戶端
Windows 7 [僅限傳統型應用程式]
最低支援的伺服器
Windows Server 2008 R2 [僅限傳統型應用程式]

另請參閱

UI_PKEY_Label