C1.Win.C1InputPanel 命名空间 > InputComponent 类 : BoundValue 属性 |
'声明
<System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> <System.ComponentModel.BrowsableAttribute(False)> <System.ComponentModel.BindableAttribute(Bindable=True, Direction=BindingDirection.OneWay)> <C1DescriptionAttribute("获取或设置与此组件关联的数据绑定值。")> <C1CategoryAttribute("数据")> Public Overridable Property BoundValue As System.Object
'用法
Dim instance As InputComponent Dim value As System.Object instance.BoundValue = value value = instance.BoundValue
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [System.ComponentModel.Browsable(false)] [System.ComponentModel.Bindable(Bindable=true, Direction=BindingDirection.OneWay)] [C1Description("获取或设置与此组件关联的数据绑定值。")] [C1Category("数据")] public virtual System.object BoundValue {get; set;}
public read-write property BoundValue: System.TObject; virtual;
System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden) System.ComponentModel.BrowsableAttribute() System.ComponentModel.BindableAttribute(Bindable=, Direction=BindingDirection.OneWay) C1DescriptionAttribute("获取或设置与此组件关联的数据绑定值。") C1CategoryAttribute("数据") public function get,set BoundValue : System.Object
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [System.ComponentModel.Browsable(false)] [System.ComponentModel.Bindable(Bindable=true, Direction=BindingDirection.OneWay)] [C1Description("获取或设置与此组件关联的数据绑定值。")] [C1Category("数据")] public: __property virtual System.Object* get_BoundValue(); public: __property virtual void set_BoundValue( System.Object* value );
[System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [System.ComponentModel.Browsable(false)] [System.ComponentModel.Bindable(Bindable=true, Direction=BindingDirection.OneWay)] [C1Description("获取或设置与此组件关联的数据绑定值。")] [C1Category("数据")] public: virtual property System.Object^ BoundValue { System.Object^ get(); void set ( System.Object^ value); }
Use this property to bind the component to values that can be null.
For example, the InputCheckBox component has a boolean InputCheckBox.Checked property of type boolean that can be bound to boolean fields, the InputNumericBox component has a Value property of type decimal that can be bound to numeric fields, and the InputDatePicker has a Value property of type System.DateTime that can be bound to date fields.
These are all value types and thus cannot be set to null or System.DBNull.Value. All these properties map internally to the BoundValue property, which is of type System.Object and can be set to null.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2