Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

labelInfo

Specifies how the property's labels are displayed. There should be only one labelInfo element for each propertyDescription element.

If there are multiple elements, the last one is used. If no labelInfo element is provided, then the property's label is not displayed; however, this would typically be a defect.

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>

Element Information

Parent ElementChild Elements
propertyDescription None

 

Attributes

AttributeDescription
labelPublic. Optional. The label as it is displayed in the UI (for example, the details column label or preview pane). The syntax allows for a direct display string or an indirect display string reference. Use the indirect display string because it can be localized. IPropertyDescription::GetDisplayName returns the resolved display name.
sortDescriptionOptional. Specifies the strings offered as sort options. IPropertyDescription::GetSortDescription returns this sort description. The following values provide the corresponding UI strings.
  • General: "Sort going up" / "Sort going down"
  • AToZ: "A on top" / "Z on top"
  • LowestHighest: "Lowest on top" / "Highest on top"
  • OldestNewest: "Oldest on top" / "Newest on top"
  • SmallestLargest: "Smallest on top" / "Largest on top"
invitationTextOptional. The Help string text that is displayed as an instruction to the user for the control or ToolTip (for instance, "Enter author name."). The syntax allows for a direct display string or an indirect display string reference. Use the indirect display string because it can be localized. IPropertyDescription::GetEditInvitation returns the resolved invitation text.
hideLabelOptional. The default is "false". Indicates whether the label is hidden.

 

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.