enumRange

将枚举文本分配给一系列值。 每个 enumRange 元素指定最小值,并扩展至下一个元素最小值,或直到不再有枚举Range 元素。

语法

<!-- enumRange -->
<xs:element name="enumRange" minOccurs="0" maxOccurs="unbounded">
    <xs:complexType>
        <xs:sequence>
            <xs:element ref="image" minOccurs="0" maxOccurs="1"/>
        </xs:sequence>
            <xs:attribute name="minValue" type="xs:integer" use="required"/>
            <xs:attribute name="setValue" type="xs:integer"/>
            <xs:attribute name="text" type="xs:string"/>
            <xs:attribute name="name" type="canonical-name"/> <!--Maximum of 64 characters-->
            <xs:attribute name="mnemonics" type="xs:string"/> 
    </xs:complexType>
</xs:element>

元素信息

Parent 元素 子元素
enumeratedList 没有

 

属性

属性 描述
minValue 公共。 必填。 范围内的最小值。
setValue 公共。 自选。 当用户从 listbox 属性控件中选择此枚举时,此离散值将分配为属性值。
发短信 公共。 自选。 用于显示枚举值的文本。 语法允许直接显示字符串或间接显示字符串引用;使用间接显示字符串,以便可以对其进行本地化。
记忆术 Windows 7 及更高版本。 公共。 自选。 可用于引用搜索查询中的属性的助记值列表。 该列表以“|”字符分隔。
名字 必填。 规范属性名称,对系统是唯一的;例如 System.Rating。 此属性限制为 64 个字符。 名称区分大小写,应使用以下语法:Publisher.Application.PropertyName。 以下方法返回此值:IExplorerCommand::GetCanonicalNameIPropertyDescription::GetCanonicalNameIPropertyDescription2::GetCanonicalNameIPropertyUI::GetCanonicalName