Command.LabelDescription-Eigenschaft

Stellt eine Bezeichnungsbeschreibung dar.

Verbrauch

<Command.LabelDescription>
  child elements
</Command.LabelDescription>

Attribute

Es gibt keine Attribute.

Untergeordnete Elemente

Element BESCHREIBUNG
String
Kann höchstens einmal auftreten

Übergeordnete Elemente

Element
Befehl

Bemerkungen

Optional.

Kann höchstens einmal für jeden Befehl auftreten.

Command.LabelDescription kann einen Wert vom Typ xs:string enthalten, der auf eine beliebige Zeichenfolge beschränkt ist, einschließlich Leerzeichen und Zeilenumbruchzeichen.

Hinweis

Verwenden Sie den UCS-XML-Zeichenverweis &#xA; (Universal Character Set), um einen Zeilenumbruch anzugeben.

Die maximale Länge ist ungebunden.

Wenn für Command.LabelDescription kein Wert angegeben wird, ist das untergeordnete String-Element erforderlich.

Hinweis

Wenn Command.LabelDescription sowohl einen Wert als auch ein untergeordnetes String-Element enthält, hat String Vorrang.

Command.LabelDescription unterstützt nur die Linksausrichtung.

Beispiele

Das folgende Beispiel zeigt ein Manifest von Zwischenablagebefehlen mit verschiedenen Command.LabelDescription-Deklarationen .

<Command Name="cmdHomeTab"
         LabelTitle="Home"
         Keytip="H" />
<Command Name="cmdClipboardGroup"
         Symbol="IDR_CMD_CLIPBOARD"
         Id="10000"
         Comment="Command definition for clipboard group"
         LabelTitle="Clipboard"
         Keytip="CB" />
<Command Name="cmdCopy"
         Symbol="IDR_CMD_COPY"
         LabelTitle="Copy"
         LabelDescription="Copy"
         Keytip="C"
         TooltipTitle="Copy"
         TooltipDescription="Click to copy">
  <Command.SmallImages>
    <Image>res/copyS_16.bmp</Image>
  </Command.SmallImages>
  <Command.LargeImages>
    <Image>res/copyL_32.bmp</Image>
  </Command.LargeImages>
</Command>
<Command Name="cmdPaste"
         Symbol="IDR_CMD_PASTE" >
  <Command.LabelTitle>Paste</Command.LabelTitle>
  <Command.LabelDescription>
    <String Content="Paste contents of clipboard"
            Id="10001"
            Symbol="IDR_RES_LABELDESC_PASTE" />
  </Command.LabelDescription>
  <Command.Keytip>P</Command.Keytip>
  <Command.TooltipTitle>
    <String Content="Paste contents of clipboard"
            Id="10002"
            Symbol="IDR_RES_TOOLTIP_PASTE"/>
  </Command.TooltipTitle>
  <Command.TooltipDescription>
    <String Content="Click to paste contents of clipboard"/>
  </Command.TooltipDescription>
  <Command.SmallImages>
    <Image
      Id="10010"
      MinDPI="96"
      Symbol="IDR_RES_SMALL_IMAGE96">
      <Image.Source>res/pasteS_96bpp.bmp</Image.Source>
    </Image>
    <Image Source="res/pasteS_120bpp.bmp"
           Id="10011"
           MinDPI="120"
           Symbol="IDR_RES_SMALL_IMAGE120" />
  </Command.SmallImages>
  <Command.LargeImages>
    <Image>res/pasteL_32.bmp</Image>
  </Command.LargeImages>
</Command>
<Command Name="cmdMinimize"
         Symbol="IDR_CMD_MINIMIZE"
         Id="10001"
         LabelTitle="Minimize" />

Anforderungen

Anforderung Wert
Unterstützte Mindestversion (Client)
Windows 7 [nur Desktop-Apps]
Unterstützte Mindestversion (Server)
Windows Server 2008 R2 [nur Desktop-Apps]

Siehe auch

UI_PKEY_LabelDescription