UrlEditor.EditValue(ITypeDescriptorContext, IServiceProvider, Object) 方法

定义

使用 GetEditStyle(ITypeDescriptorContext) 方法所提供的编辑器样式编辑指定对象的值。Edits the value of the specified object using the editor style provided by the GetEditStyle(ITypeDescriptorContext) method.

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

参数

context
ITypeDescriptorContext

可用于获取附加上下文信息的 ITypeDescriptorContext 对象。An ITypeDescriptorContext object that can be used to gain additional context information.

provider
IServiceProvider

可通过其获取编辑服务的服务提供程序对象。A service provider object through which editing services may be obtained.

value
Object

正在编辑的值的实例。An instance of the value being edited.

返回

对象的新值。The new value of the object. 如果未更改对象的值,则此方法应返回所传递的同一对象。If the value of the object hasn't changed, this method should return the same object it was passed.

适用于