ControlDesigner.OnComponentChanged(Object, ComponentChangedEventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when the associated control changes.
public:
virtual void OnComponentChanged(System::Object ^ sender, System::ComponentModel::Design::ComponentChangedEventArgs ^ ce);
public virtual void OnComponentChanged (object sender, System.ComponentModel.Design.ComponentChangedEventArgs ce);
abstract member OnComponentChanged : obj * System.ComponentModel.Design.ComponentChangedEventArgs -> unit
override this.OnComponentChanged : obj * System.ComponentModel.Design.ComponentChangedEventArgs -> unit
Public Overridable Sub OnComponentChanged (sender As Object, ce As ComponentChangedEventArgs)
Parameters
- sender
- Object
The source of the event.
A ComponentChangedEventArgs object that contains the event data.
Remarks
The OnComponentChanged method is called when a property on the associated control is changed. It allows the implementer to do any processing that might be required after a property change. Calling the OnComponentChanged method causes the design host to call the GetDesignTimeHtml method. The base implementation of the OnComponentChanged method also persists the control in the page markup.
Notes to Inheritors
Override the OnComponentChanged(Object, ComponentChangedEventArgs) method to provide additional processing before persisting the control and before refreshing the design-time HTML markup.
When overriding the OnComponentChanged(Object, ComponentChangedEventArgs) method in a derived class, make sure that you call the OnComponentChanged(Object, ComponentChangedEventArgs) method for the base class so that registered delegates receive the event.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기