String element
Represents a string resource.
Usage
<String
Content = "xs:string"
Id = "xs:positiveInteger or xs:string"
Symbol = "xs:string">
child elements
</String>
Attributes
Attribute | Type | Required | Description |
---|---|---|---|
Content |
xs:string |
No |
|
Id |
xs:positiveInteger or xs:string |
No |
The unique resource ID. The maximum length is 10 characters including optional leading zeros. |
Symbol |
xs:string |
No |
The resource symbol for the string. The maximum length is 100 characters. |
Child elements
Element | Description |
---|---|
String.Content |
May occur at most once |
String.Id |
May occur at most once |
String.Symbol |
May occur at most once |
Parent elements
Element |
---|
Command.Keytip |
Command.LabelDescription |
Command.LabelTitle |
Command.TooltipDescription |
Command.TooltipTitle |
Remarks
Optional.
May occur at most once for each Command.LabelTitle, Command.LabelDescription, Command.Keytip, Command.TooltipTitle, or Command.TooltipDescription element.
The string definition is added to the Ribbon header file, for example, #define strSave 59999
.
The string is added to a string table in the Ribbon resource file where a name and ID are generated by the Ribbon framework if none are declared.
Examples
The following example demonstrates the markup for a Command.LabelTitle element with a String declaration.
<Command.LabelTitle>
<String>
<String.Content>Label for Save</String.Content>
<String.Id>59999</String.Id>
<String.Symbol>strSave</String.Symbol>
</String>
</Command.LabelTitle>
Element information
- Minimum supported system: Windows 7
- Can be empty: No