字符串元素

表示字符串资源。

使用情况

<String
  Content = "xs:string"
  Id = "xs:positiveInteger or xs:string"
  Symbol = "xs:string">
  child elements
</String>

特性

属性 类型 必须 说明
内容
xs:string

(xs:string)
由任意字符序列(包括空格和换行符)组成的字符串。
Id
xs:positiveInteger 或 xs:string

唯一的资源 ID。

(xs:positiveInteger 或 xs:string)
介于 2 和 59999 之间(含)或0x2的整数值,0xea5f十六进制(含)。
最大长度为 10 个字符,包括可选的前导零。
符号
xs:string

字符串的资源符号。

(xs:string)
字母或下划线,后跟任何字母、数字或下划线序列。
最大长度为 100 个字符。

子元素

元素 说明
String.Content
最多可以发生一次

String.Id
最多可以发生一次

String.Symbol
最多可以发生一次

父元素

元素
Command.Keytip
Command.LabelDescription
Command.LabelTitle
Command.TooltipDescription
Command.TooltipTitle

备注

可选。

对于每个 Command.LabelTitleCommand.LabelDescriptionCommand.KeytipCommand.TooltipTitleCommand.TooltipDescription 元素,最多可以发生一次。

字符串定义将添加到功能区头文件,例如 #define strSave 59999

字符串将添加到功能区资源文件中的字符串表中,如果未声明任何名称和 ID,则由功能区框架在其中生成。

示例

以下示例演示具有 String 声明的 Command.LabelTitle 元素的标记。

<Command.LabelTitle>
  <String>
    <String.Content>Label for Save</String.Content>
    <String.Id>59999</String.Id>
    <String.Symbol>strSave</String.Symbol>
  </String>
</Command.LabelTitle>

元素信息

  • 支持的最低系统:Windows 7
  • 可以为空:否