列舉
用來將列舉文字指派給離散值。 這些元素的任意數目可能存在於 enumeratedList之下。 以程序設計方式,這些物件會以IPropertyEnumType物件表示,其 IPropertyEnumType::GetEnumType 方法會傳回PET_DISCRETEVALUE。
<!-- enum -->
<xs:element name="enum" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element ref="image" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="value" type="xs:string" use="required"/>
<xs:attribute name="text" type="xs:string" use="required"/>
<xs:attribute name="mnemonics" type="xs:string"/>
</xs:complexType>
</xs:element>
Parent 元素 | 子專案 |
---|---|
enumeratedList | 沒有 |
屬性 | 描述 |
---|---|
價值 | 公共。 必填。 要指派列舉文字的離散值(字串或數位)。 |
發簡訊 | 公共。 必填。 用來顯示列舉值的文字。 語法允許直接顯示字串或間接顯示字串參考;使用間接顯示字串,使其可以當地語系化。 |
記憶術 | Windows 7 和更新版本。 公共。 自選。 可用來在搜尋查詢中參考 屬性的助記鍵值清單。 清單是以 『|』 字元分隔。 |