WindowsFormsComponentEditor.EditComponent Method

Definition

Creates an editor window that allows the user to edit the specified component.

Overloads

EditComponent(ITypeDescriptorContext, Object)

Creates an editor window that allows the user to edit the specified component, using the specified context information.

EditComponent(Object, IWin32Window)

Creates an editor window that allows the user to edit the specified component, using the specified window that owns the component.

EditComponent(ITypeDescriptorContext, Object, IWin32Window)

Creates an editor window that allows the user to edit the specified component.

EditComponent(ITypeDescriptorContext, Object)

Source:
WindowsFormsComponentEditor.cs
Source:
WindowsFormsComponentEditor.cs
Source:
WindowsFormsComponentEditor.cs

Creates an editor window that allows the user to edit the specified component, using the specified context information.

C#
public override bool EditComponent(System.ComponentModel.ITypeDescriptorContext context, object component);
C#
public override bool EditComponent(System.ComponentModel.ITypeDescriptorContext? context, object component);

Parameters

context
ITypeDescriptorContext

An ITypeDescriptorContext that can be used to gain additional context information.

component
Object

The component to edit.

Returns

true if the component was changed during editing; otherwise, false.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

EditComponent(Object, IWin32Window)

Source:
WindowsFormsComponentEditor.cs
Source:
WindowsFormsComponentEditor.cs
Source:
WindowsFormsComponentEditor.cs

Creates an editor window that allows the user to edit the specified component, using the specified window that owns the component.

C#
public bool EditComponent(object component, System.Windows.Forms.IWin32Window owner);
C#
public bool EditComponent(object component, System.Windows.Forms.IWin32Window? owner);

Parameters

component
Object

The component to edit.

owner
IWin32Window

An IWin32Window that the component belongs to.

Returns

true if the component was changed during editing; otherwise, false.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

EditComponent(ITypeDescriptorContext, Object, IWin32Window)

Source:
WindowsFormsComponentEditor.cs
Source:
WindowsFormsComponentEditor.cs
Source:
WindowsFormsComponentEditor.cs

Creates an editor window that allows the user to edit the specified component.

C#
public virtual bool EditComponent(System.ComponentModel.ITypeDescriptorContext context, object component, System.Windows.Forms.IWin32Window owner);
C#
public virtual bool EditComponent(System.ComponentModel.ITypeDescriptorContext? context, object component, System.Windows.Forms.IWin32Window? owner);

Parameters

context
ITypeDescriptorContext

An ITypeDescriptorContext that can be used to gain additional context information.

component
Object

The component to edit.

owner
IWin32Window

An IWin32Window that the component belongs to.

Returns

true if the component was changed during editing; otherwise, false.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10