BaseDataListDesigner.OnComponentChanged(Object, ComponentChangedEventArgs) 方法
定义
当关联的控件更改时调用。Called when there is a change to the associated control.
public:
override void OnComponentChanged(System::Object ^ sender, System::ComponentModel::Design::ComponentChangedEventArgs ^ e);
public override void OnComponentChanged (object sender, System.ComponentModel.Design.ComponentChangedEventArgs e);
override this.OnComponentChanged : obj * System.ComponentModel.Design.ComponentChangedEventArgs -> unit
Public Overrides Sub OnComponentChanged (sender As Object, e As ComponentChangedEventArgs)
参数
包含事件数据的 ComponentChangedEventArgs。A ComponentChangedEventArgs that contains the event data.
注解
OnComponentChanged当 ComponentChanged 执行从类派生的控件的事件时,将调用方法 BaseDataList 。The OnComponentChanged method is called when the ComponentChanged event of a control that is derived from the BaseDataList class executes. 通常,这是为了响应控件上的属性更改 (例如, 属性 网格更改) 。Typically, this is in response to a property change on the control (for example, a Properties grid change). 如果 DataSource 更改了控件所绑定到的对象,则会在设计图面上重新绘制控件。If the DataSource object to which the control is bound is changed, the control is redrawn on the design surface.