EN
本內容沒有您的語言版本,但有英文版本。

stringFormat

Specifies how IPropertyDescription::FormatForDisplay should format the property's value as a string. This is applicable only if <displayInfo displayType="String">. There should be only one stringFormat element for each displayInfo element.

If there are multiple elements, the last one is used. If no stringFormat element is provided, then the default attribute settings are applied to the property description.

Syntax


<!-- stringFormat -->
<xs:element name="stringFormat"  minOccurs="0" maxOccurs="1">
    <xs:complexType>
        <xs:attribute name="formatAs">
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="General"/>
                    <xs:enumeration value="FileName"/>
                    <xs:enumeration value="FilePath"/>
                    <xs:enumeration value="Hyperlink"/>
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
    </xs:complexType>
</xs:element>

Element Information

Parent ElementChild Elements
displayInfo None

 

Attributes

AttributeDescription
formatAsPublic. Optional. Default is "General". The following are valid values.
ValueMeaning
GeneralDefault. Returns the value as an unformatted string.
FileNameFormats the value as a file name. Hides the extension according to user settings. Requires the property type to be String.
FilePathFormats the value as a file path. Hides the extension according to user settings. Requires the property type to be String.
HyperlinkFormats the value as a hyperlink.

 

 

 

 

社群新增項目

新增
顯示:
© 2014 Microsoft