Skip to content

Latest commit

 

History

History
103 lines (61 loc) · 2.33 KB

windowsribbon-element-command-symbol.md

File metadata and controls

103 lines (61 loc) · 2.33 KB
title description ms.assetid keywords topic_type api_name api_type ms.topic ms.date
Command.Symbol property
Represents the name of a Command that can be referenced externally.
affa5f3f-f641-4bec-9165-6102509cf355
Command.Symbol property Windows Ribbon
apiref
Command.Symbol
NA
reference
05/31/2018

Command.Symbol property

Represents the name of a Command that can be referenced externally.

Usage

<Command.Symbol/>

Attributes

There are no attributes.

Child elements

There are no child elements.

Parent elements

Element
Command

Remarks

Optional.

May occur at most once for each Command.

The symbol is associated with a Command definition in the Ribbon header file, for example, #define cmdSave 25003 /* Save */.

This element contains a value of type xs:string.

The value is constrained to a string that consists of a letter or underscore followed by any sequence of letters, digits, and underscores.

The maximum length is 100 characters.

Examples

The following example demonstrates the markup for a Command element with a Command.Symbol declaration.

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

Requirements

Requirement Value
Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]