labelInfo

指定屬性標籤的顯示方式。 每個propertyDescription元素應該只有一個labelInfo元素。

如果有多個元素,則會使用最後一個專案。 如果未提供 labelInfo 元素,則不會顯示內容的標籤;不過,這通常是瑕疵。

Syntax

<!-- labelInfo -->
<xs:element name="labelInfo">
    <xs:complexType>
        <xs:attribute name="label" type="xs:string"/>
        <xs:attribute name="sortDescription">
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="General"/>
                    <xs:enumeration value="AToZ"/>
                    <xs:enumeration value="LowestHighest"/>
                    <xs:enumeration value="OldestNewest"/>
                    <xs:enumeration value="SmallestLargest"/>
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="invitationText" type="xs:string"/>
        <xs:attribute name="hideLabel" type="xs:boolean" default="false"/>
    </xs:complexType>
</xs:element>

項目資訊

Parent 項目 子元素
propertyDescription

 

屬性

屬性 Description
label 公用。 選擇性。 標籤顯示在 UI (例如詳細資料行標籤或預覽窗格) 。 語法允許直接顯示字串或間接顯示字串參考。 使用間接顯示字串,因為它可以當地語系化。 IPropertyDescription::GetDisplayName 會傳回解析的顯示名稱。
sortDescription 選擇性。 指定提供做為排序選項的字串。 IPropertyDescription::GetSortDescription 會傳回此排序描述。 下列值提供對應的 UI 字串。
  • 一般:「Sort up」 / 「Sort down」
  • AToZ:「A on top」 / 「Z on top」
  • LowestHighest:「Top 最低」 / 「Highest on top」
  • OldestNewest: 「Oldest on top」 / 「Newest on top」
  • SmallestLargest: 「smallest on top」 / 「Largest on top」
invitationText 選擇性。 說明字串文字,顯示為使用者控制項或工具 (提示的指示,例如「輸入作者名稱」。) 。 語法允許直接顯示字串或間接顯示字串參考。 使用間接顯示字串,因為它可以當地語系化。 IPropertyDescription::GetEditInvitation 會傳回解析的邀請文字。
hideLabel 選擇性。 預設值為 "false"。 指出標籤是否隱藏。