Share via


Binding 成员

代表某对象属性值和某控件属性值之间的简单绑定。

下表列出了由 Binding 类型公开的成员。

公共构造函数

  名称 说明
Public method Supported by the .NET Compact Framework Binding 已重载。初始化 Binding 类的新实例。

页首

公共属性

  名称 说明
Public property Supported by the .NET Compact Framework BindableComponent 获取与 Binding 关联的控件。
Public property Supported by the .NET Compact Framework BindingManagerBase 获取此 BindingBindingManagerBase
Public property Supported by the .NET Compact Framework BindingMemberInfo 获取包含有关该绑定的信息的对象(基于 Binding 构造函数中的 dataMember 参数)。
Public property Supported by the .NET Compact Framework Control 获取绑定所属的控件。
Public property Supported by the .NET Compact Framework ControlUpdateMode 获取或设置将数据源的更改传播到绑定控件属性的时间。
Public property Supported by the .NET Compact Framework DataSource 获取该绑定的数据源。
Public property Supported by the .NET Compact Framework DataSourceNullValue 获取或设置将存储在数据源中的值(如果控件值为 空引用(在 Visual Basic 中为 Nothing) 或为空)。
Public property Supported by the .NET Compact Framework DataSourceUpdateMode 获取或设置将绑定控件属性的更改传播到数据源的时间。
Public property Supported by the .NET Compact Framework FormatInfo 获取或设置提供自定义格式设置行为的 IFormatProvider
Public property Supported by the .NET Compact Framework FormatString 获取或设置指示如何显示值的格式说明符。
Public property Supported by the .NET Compact Framework FormattingEnabled 获取或设置一个值,该值指示是否对控件属性数据应用格式设置。
Public property Supported by the .NET Compact Framework IsBinding 获取指示绑定是否活动的值。
Public property Supported by the .NET Compact Framework NullValue 获取或设置当数据源包含 DBNull 值时,作为控件属性设置的 Object
Public property Supported by the .NET Compact Framework PropertyName 获取或设置控件的数据绑定属性的名称。

页首

公共方法

(请参见 受保护的方法 )

  名称 说明
Public method Supported by the .NET Compact Framework Equals  已重载。 确定两个 Object 实例是否相等。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework GetHashCode  用作特定类型的哈希函数。GetHashCode 适合在哈希算法和数据结构(如哈希表)中使用。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework GetType  获取当前实例的 Type。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework ReadValue 将控件属性设置为从数据源读取的值。
Public method Static Supported by the .NET Compact Framework ReferenceEquals  确定指定的 Object 实例是否是相同的实例。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework ToString  返回表示当前 ObjectString。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework WriteValue 读取控件属性的当前值并将其写入数据源。

页首

受保护的方法

  名称 说明
Protected method Supported by the .NET Compact Framework Finalize  允许 Object 在“垃圾回收”回收 Object 之前尝试释放资源并执行其他清理操作。 (从 Object 继承。)
Protected method Supported by the .NET Compact Framework MemberwiseClone  创建当前 Object 的浅表副本。 (从 Object 继承。)
Protected method Supported by the .NET Compact Framework OnBindingComplete 引发 BindingComplete 事件。
Protected method Supported by the .NET Compact Framework OnFormat 引发 Format 事件。
Protected method Supported by the .NET Compact Framework OnParse 引发 Parse 事件。

页首

公共事件

  名称 说明
Public event Supported by the .NET Compact Framework BindingComplete 在绑定操作完成时(例如,当数据从数据源推入控件属性时,或者反过来)发生
Public event Supported by the .NET Compact Framework Format 当将某控件的属性绑定到某个数据值时发生。
Public event Supported by the .NET Compact Framework Parse 在数据绑定控件的值更改时发生。

页首

请参见

参考

Binding 类
System.Windows.Forms 命名空间
BindingContext
BindingManagerBase
ComboBox
DataGrid