booleanFormat

booleanFormat

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 booleanFormat element for each displayInfo element.

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

Syntax



      <!-- booleanFormat -->
      <xs:element name="booleanFormat"  minOccurs="0" maxOccurs="1">
        <xs:complexType>
          <xs:attribute name="formatAs">
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:enumeration value="YesNo"/>
                <xs:enumeration value="OnOff"/>
                <xs:enumeration value="TrueFalse"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>


Element Information

Parent ElementChild Elements
displayInfo None

 

Attributes

AttributeDescription
formatAsPublic. Optional. Default is "YesNo". The following are valid values.
ValueMeaning
YesNoDefault. Formats the value as either "Yes" or "No". Requires the property type to be Boolean.
OnOffFormats the value as either "On" or "Off". Requires the property type to be Boolean.
TrueFalseFormats the value as either "True" or "False". Requires the property type to be Boolean.

 

 

 

 

Community Additions

ADD
Show:
© 2016 Microsoft