次の方法で共有


booleanFormat

IPropertyDescription::FormatForDisplayプロパティの値を文字列として書式設定する方法を指定します。 これは、displayInfo displayType="String" <>場合にのみ適用されます。 displayInfo 要素ごとに、booleanFormat 要素が 1 つだけ 必要です。

複数の要素がある場合は、最後の要素が使用されます。 booleanFormat 要素 指定されていない場合は、既定の属性設定がプロパティの説明に適用されます。

構文

      <!-- 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>

要素情報

Parent 要素 子要素
displayInfo する 何一つ

 

属性

属性 形容
formatA 公共。 随意。 既定値は "YesNo" です。 有効な値を次に示します。
価値 意味
はいいいえ デフォルト。 値を "Yes" または "No" として書式設定します。 プロパティ型をブール値にする必要があります。
OnOff 値を "On" または "Off" として書式設定します。 プロパティ型をブール値にする必要があります。
TrueFalse 値を "True" または "False" として書式設定します。 プロパティ型をブール値にする必要があります。