共用方式為


enumRange

將列舉文字指派給值範圍。 每個 enumRange 元素都會指定最小值,並延伸至下一個元素最小值,或直到沒有其他 enumRange 元素為止。

語法

<!-- 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::GetCanonicalName,以及 IPropertyUI::GetCanonicalName