ContentControlListEntry.Value 属性

定义

返回或设置下拉列表或组合框内容控件中项的编程值。 读/写。

public:
 property System::String ^ Value { System::String ^ get(); void set(System::String ^ value); };
public string Value { get; set; }
member this.Value : string with get, set
Public Property Value As String

属性值

String

注解

使用 Value 属性来存储数据,您需要在处理时使用。 例如,属性 Text 可能包含要显示的字符串, Value 属性可能包含可用于在数据库中查找信息的数字,例如项编号。 属性的值也就发送到自定义 XML 数据,如果内容控件映射到数据存储区中的 XML 数据。

注意:不能为从附加到此控件的自定义 XML 的 XML 架构自动填充的列表条目设置 Value 属性。

适用于