Bearbeiten

Freigeben über


TypeBrowserEditor.EditValue Method

Definition

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

public:
 override System::Object ^ EditValue(System::ComponentModel::ITypeDescriptorContext ^ typeDescriptorContext, IServiceProvider ^ serviceProvider, System::Object ^ value);
public override object EditValue (System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, IServiceProvider serviceProvider, object value);
override this.EditValue : System.ComponentModel.ITypeDescriptorContext * IServiceProvider * obj -> obj
Public Overrides Function EditValue (typeDescriptorContext As ITypeDescriptorContext, serviceProvider As IServiceProvider, value As Object) As Object

Parameters

typeDescriptorContext
ITypeDescriptorContext

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

serviceProvider
IServiceProvider

An IServiceProvider that the editor can use to obtain services.

value
Object

The Object to edit.

Returns

The new value of the object.

Exceptions

typeDescriptorContext or serviceProvider contains a null reference (Nothing in Visual Basic).

GetService(Type) returns a null reference (Nothing) when it attempts to obtain the type provider.

Applies to