次の方法で共有


stringFormat

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

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

構文

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

要素情報

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

 

属性

属性 形容
formatA 公共。 随意。 既定値は "全般" です。 有効な値を次に示します。
価値 意味
全般 デフォルト。 書式設定されていない文字列として値を返します。
FileName 値をファイル名として書式設定します。 ユーザー設定に従って拡張機能を非表示にします。 プロパティの型が String である必要があります。
FilePath 値をファイル パスとして書式設定します。 ユーザー設定に従って拡張機能を非表示にします。 プロパティの型が String である必要があります。
ハイパーリンク 値をハイパーリンクとして書式設定します。