numberFormat
Specifies how IPropertyDescription::FormatForDisplay should format the property's value as a string. This is applicable only if <displayInfo displayType="Number">. There should be only one numberFormat element for each displayInfo element.
If there are multiple elements, the last one is used. If no numberFormat element is provided, then the default attribute settings are applied to the property description.
<!-- numberFormat -->
<xs:element name="numberFormat" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:attribute name="formatAs">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="General"/>
<xs:enumeration value="Percentage"/>
<xs:enumeration value="ByteSize"/>
<xs:enumeration value="KBSize"/>
<xs:enumeration value="SampleSize"/>
<xs:enumeration value="Bitrate"/>
<xs:enumeration value="SampleRate"/>
<xs:enumeration value="FrameRate"/>
<xs:enumeration value="Pixels"/>
<xs:enumeration value="DPI"/>
<xs:enumeration value="Duration"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="formatDurationAs">
<xs:restriction base="xs:string">
<xs:enumeration value="hh:mm"/>
<xs:enumeration value="hh:mm:ss"/>
<xs:enumeration value="hh:mm:ss.fff"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
Parent Element | Child Elements |
---|---|
displayInfo | None |
Attribute | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
formatAs | Public. Optional. Default is "General". Specifies the display format. The following are valid values.
|
||||||||||||||||||||||||
formatDurationAs | Public. Optional. Default is "hh:mm:ss". Only applies if formatAs="Duration". Requires the property to be UInt64. The following are valid values.
|