UITypeEditor.EditValue Method (ITypeDescriptorContext, IServiceProvider, Object)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Drawing.Design
Assembly:  System.Drawing (in System.Drawing.dll)

Public Overridable Function EditValue (
	context As ITypeDescriptorContext,
	provider As IServiceProvider,
	value As Object
) As Object


Type: System.ComponentModel.ITypeDescriptorContext

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

Type: System.IServiceProvider

An IServiceProvider that this editor can use to obtain services.

Type: System.Object

The object to edit.

Return Value

Type: System.Object

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

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

.NET Framework
Available since 1.1
Return to top