Bewerken

Delen via


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)

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

public:
 System::Object ^ EditValue(IServiceProvider ^ provider, System::Object ^ value);
public object EditValue (IServiceProvider provider, object value);
public object? EditValue (IServiceProvider provider, object? value);
member this.EditValue : IServiceProvider * obj -> obj
Public Function EditValue (provider As IServiceProvider, value As Object) As Object

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

EditValue(ITypeDescriptorContext, IServiceProvider, Object)

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

public:
 virtual System::Object ^ EditValue(System::ComponentModel::ITypeDescriptorContext ^ context, IServiceProvider ^ provider, System::Object ^ value);
public virtual object EditValue (System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value);
public virtual object? EditValue (System.ComponentModel.ITypeDescriptorContext? context, IServiceProvider provider, object? value);
abstract member EditValue : System.ComponentModel.ITypeDescriptorContext * IServiceProvider * obj -> obj
override this.EditValue : System.ComponentModel.ITypeDescriptorContext * IServiceProvider * obj -> obj
Public Overridable Function EditValue (context As ITypeDescriptorContext, provider As IServiceProvider, value As Object) As Object

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