editControl

指定编辑属性时要使用的控件。 每个 displayInfo 元素应只有一个 editControl 元素。

如果有多个元素,则使用最后一个元素。 如果未提供 editControl 元素,则默认属性设置将应用于属性说明。

如果 <typeInfo isInnate=“true”>,则忽略此元素,因为无法编辑内生属性。

语法

<!-- editControl -->
<xs:element name="editControl"  minOccurs="0" maxOccurs="1">
    <xs:complexType>
        <xs:attribute name="control">
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="Default"/>
                    <xs:enumeration value="Calendar"/>
                    <xs:enumeration value="CheckboxDropList"/>
                    <xs:enumeration value="DropList"/>
                    <xs:enumeration value="MultiLineText"/>
                    <xs:enumeration value="MultiValueText"/>
                    <xs:enumeration value="Rating"/>
                    <xs:enumeration value="Text"/>
                    <xs:enumeration value="IconList"/>
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
    </xs:complexType>
</xs:element>

元素信息

Parent 元素 子元素
displayInfo 没有

 

属性

属性 描述
控制 公共。 自选。 默认值为“Default”。 以下是有效值。
价值 意义
违约 违约。 根据 <typeInfo type=“”> 属性使用默认控件。 下面列出了默认类型。 任何其他类型都会导致使用“Text”控件。 <>
类型 控制
字符串 发短信
字符串 (多值) MultiValueText
DateTime 日历

 

日历 使用日历控件。
CheckboxDropList 将列表控件与复选框一起使用。
DropList 使用下拉列表控件。
MultiLineText 使用多行文本编辑控件。
MultiValueText 使用多值文本编辑控件。
额定值 使用 5 星级分级控件。
发短信 使用文本编辑控件。
IconList Windows 7 及更高版本。