Élément String
Représente une ressource de type chaîne.
Utilisation
<String
Content = "xs:string"
Id = "xs:positiveInteger or xs:string"
Symbol = "xs:string">
child elements
</String>
Attributs
| Attribut | Type | Obligatoire | Description |
|---|---|---|---|
| Contenu |
xs:string |
No |
|
| Id |
XS : positiveInteger ou XS : String |
No |
ID de ressource unique. La longueur maximale est de 10 caractères, y compris des zéros non significatifs facultatifs. |
| Symbole |
xs:string |
No |
Symbole de ressource pour la chaîne. La longueur maximale est de 100 caractères. |
Éléments enfants
| Élément | Description |
|---|---|
| String. Content |
Peut se produire au plus une fois |
| String.Id |
Peut se produire au plus une fois |
| String. Symbol |
Peut se produire au plus une fois |
Éléments parents
| Élément |
|---|
| Commande. KeyTip |
| Commande. LabelDescription |
| Commande. LabelTitle |
| Commande. TooltipDescription |
| Commande. TooltipTitle |
Remarques
Optionnel.
Peut se produire au plus une fois pour chaque élément Command. LabelTitle, Command. LabelDescription, Command. KeyTip, Command. TooltipTitleou Command. TooltipDescription .
La définition de chaîne est ajoutée au fichier d’en-tête du ruban, par exemple #define strSave 59999 .
La chaîne est ajoutée à une table de chaînes dans le fichier de ressources du ruban où un nom et un ID sont générés par l’infrastructure du ruban si aucun n’est déclaré.
Exemples
L’exemple suivant illustre le balisage pour un élément Command. LabelTitle avec une déclaration de chaîne .
<Command.LabelTitle>
<String>
<String.Content>Label for Save</String.Content>
<String.Id>59999</String.Id>
<String.Symbol>strSave</String.Symbol>
</String>
</Command.LabelTitle>
Informations sur les éléments
- système minimal pris en charge: Windows 7
- Peut être vide: non