แก้ไข

แชร์ผ่าน


ControlDesigner.OnComponentChanging Method

Definition

Represents the method that will handle the ComponentChanging event for the associated control.

public:
 virtual void OnComponentChanging(System::Object ^ sender, System::ComponentModel::Design::ComponentChangingEventArgs ^ ce);
public virtual void OnComponentChanging (object sender, System.ComponentModel.Design.ComponentChangingEventArgs ce);
abstract member OnComponentChanging : obj * System.ComponentModel.Design.ComponentChangingEventArgs -> unit
override this.OnComponentChanging : obj * System.ComponentModel.Design.ComponentChangingEventArgs -> unit
Public Overridable Sub OnComponentChanging (sender As Object, ce As ComponentChangingEventArgs)

Parameters

sender
Object

The object that is the source of the event.

ce
ComponentChangingEventArgs

A ComponentChangedEventArgs object that contains the event data.

Remarks

When either the InvokeTransactedChange or Localize method is called, the ComponentChanging event occurs before any changes are made to the associated control. After the changes are complete, the OnComponentChanged method occurs.

Applies to

See also