Share via


enum

列挙されたテキストを個別の値に割り当てる場合に使用します。 これらの要素は、列挙 リストの下にいくつでも存在できます。 これらはプログラムによって 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 なし

 

属性

属性 説明
value パブリック。 必須。 列挙テキストを割り当てる不連続値 (文字列または数値)。
text パブリック。 必須。 列挙値の表示に使用するテキスト。 構文では、直接表示文字列または間接表示文字列参照を使用できます。をローカライズできるように、間接表示文字列を使用します。
ニーモニック Windows 7 以降。 パブリック。 省略可能。 検索クエリで プロパティを参照するために使用できるニーモニック値の一覧。 リストは '|' 文字で区切られます。