UITypeEditor.EditValue Method

Definition

Edits the value of the specified object using the editor style indicated by the GetEditStyle() method.

Overloads

EditValue(IServiceProvider, Object)

Edits the value of the specified object using the editor style indicated by the GetEditStyle() method.

EditValue(ITypeDescriptorContext, IServiceProvider, Object)

Edits the specified object's value using the editor style indicated by the GetEditStyle() method.

EditValue(IServiceProvider, Object)

Source:
UITypeEditor.cs
Source:
UITypeEditor.cs
Source:
UITypeEditor.cs

Edits the value of the specified object using the editor style indicated by the GetEditStyle() method.

C#
public object EditValue(IServiceProvider provider, object value);
C#
public object? EditValue(IServiceProvider provider, object? value);

Parameters

provider
IServiceProvider

An IServiceProvider that this editor can use to obtain services.

value
Object

The object to edit.

Returns

The new value of the object.

Remarks

This method launches the user interface for value editing, and is called by the Properties window when a user attempts to edit the value of a type that this editor is configured to edit the value of. A service provider is provided so that the editor can obtain any required services.

See also

Applies to

.NET Framework 4.8.1 dan versi lain
Produk Versi
.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

EditValue(ITypeDescriptorContext, IServiceProvider, Object)

Source:
UITypeEditor.cs
Source:
UITypeEditor.cs
Source:
UITypeEditor.cs

Edits the specified object's value using the editor style indicated by the GetEditStyle() method.

C#
public virtual object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value);
C#
public virtual object? EditValue(System.ComponentModel.ITypeDescriptorContext? context, IServiceProvider provider, object? value);

Parameters

context
ITypeDescriptorContext

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

provider
IServiceProvider

An IServiceProvider that this editor can use to obtain services.

value
Object

The object to edit.

Returns

The new value of the object. If the value of the object has not changed, this should return the same object it was passed.

Remarks

A service provider is provided so that the editor can obtain any required services.

See also

Applies to

.NET Framework 4.8.1 dan versi lain
Produk Versi
.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