labelInfo
指定如何顯示屬性的標籤。 每個 propertyDescription 元素應該只有一個 labelInfo 元素。
如果有多個元素,則會使用最後一個專案。 如果未提供 labelInfo 元素,則不會顯示屬性的標籤;不過,這通常是瑕疵。
語法
<!-- 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 | 沒有 |
屬性
屬性 | 描述 |
---|---|
標籤 | 公共。 自選。 標籤顯示在 UI 中(例如詳細資料行卷標或預覽窗格)。 語法允許直接顯示字串或間接顯示字串參考。 使用間接顯示字串,因為它可以當地語系化。 IPropertyDescription::GetDisplayName 會傳回解析的顯示名稱。 |
sortDescription | 自選。 指定提供做為排序選項的字串。
IPropertyDescription::GetSortDescription 會傳回此排序描述。 下列值會提供對應的UI字串。
|
invitationText | 自選。 顯示為使用者控件或工具提示之指示的說明字串文字(例如,輸入作者名稱)。」 語法允許直接顯示字串或間接顯示字串參考。 使用間接顯示字串,因為它可以當地語系化。 IPropertyDescription::GetEditInvitation 會傳回解析的邀請文字。 |
hideLabel | 自選。 預設值為 「false」。。 指出標籤是否隱藏。 |