Command.Id propriété

Représente un ID unique pour une commande.

Utilisation

<Command.Id/>

Attributs

Il n’y a pas d’attributs.

Éléments enfants

Il n’y a pas d’éléments enfants.

Éléments parents

Élément
Commande

Notes

Optionnel.

Peut se produire au maximum une fois pour chaque commande.

L’ID est associé à une définition de commande dans le fichier d’en-tête du ruban, par exemple . #define cmdSave 25003 /* Save */

Cet élément contient une valeur de l’union des types xs:positiveInteger et xs:string limités à une valeur entière comprise entre 2 et 59999, inclusive, ou 0x2 et 0xea5f en hexadécimal, inclusif.

La longueur maximale est de 10 caractères, y compris les zéros de début facultatifs.

Exemples

L’exemple suivant illustre le balisage d’un élément Command avec une déclaration Command.Id .

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

Spécifications

Condition requise Valeur
Client minimal pris en charge
Windows 7 [applications de bureau uniquement]
Serveur minimal pris en charge
Windows Server 2008 R2 [applications de bureau uniquement]