BaseDataListComponentEditor.EditComponent 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.
Edits the specified component by using the specified context descriptor and parent window.
public:
override bool EditComponent(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ obj, System::Windows::Forms::IWin32Window ^ parent);
public override bool EditComponent (System.ComponentModel.ITypeDescriptorContext context, object obj, System.Windows.Forms.IWin32Window parent);
override this.EditComponent : System.ComponentModel.ITypeDescriptorContext * obj * System.Windows.Forms.IWin32Window -> bool
Public Overrides Function EditComponent (context As ITypeDescriptorContext, obj As Object, parent As IWin32Window) As Boolean
Parameters
- context
- ITypeDescriptorContext
An ITypeDescriptorContext object that can be used to gain additional context information.
- obj
- Object
An Object implementing the IComponent, which represents the component to edit.
- parent
- IWin32Window
The IWin32Window that represents the parent window.
Returns
true
the component was successfully edited; otherwise, false
.
Remarks
The EditComponent method gets a Type array of page control types by using the GetComponentEditorPages method. It creates a ComponentEditorForm object, and then calls its ShowForm method to display the component editor.
Notes to Inheritors
The GetComponentEditorPages() method must have been overridden to return a Type array of page control types. This array must exist in order for the EditComponent method to succeed.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기