Share via


Propiedad Command.LabelDescription

Representa una descripción de etiqueta.

Uso

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

Atributos

No hay atributos.

Elementos secundarios

Elemento Descripción
Cadena
Puede producirse como máximo una vez

Elementos primarios

Elemento
Comando

Comentarios

Opcional.

Puede producirse como máximo una vez para cada comando.

Command.LabelDescription puede contener un valor de tipo xs:string restringido a cualquier secuencia de caracteres, incluido el espacio en blanco y los caracteres de salto de línea.

Nota

Utilice la referencia &#xA; de caracteres XML del juego de caracteres universal (UCS) para especificar un salto de línea.

La longitud máxima no está delimitada.

Si no se proporciona ningún valor para Command.LabelDescription, se requiere el elemento secundario String .

Nota

Si Command.LabelDescription contiene un valor y un elemento secundario String , String tiene prioridad.

Command.LabelDescription solo admite la alineación izquierda.

Ejemplos

En el ejemplo siguiente se muestra un manifiesto de comandos del Portapapeles con varias declaraciones Command.LabelDescription .

<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" />

Requisitos

Requisito Value
Cliente mínimo compatible
Windows 7 [solo aplicaciones de escritorio]
Servidor mínimo compatible
Windows Server 2008 R2 [solo aplicaciones de escritorio]

Consulte también

UI_PKEY_LabelDescription