System.Web.UI.Design.ExpressionsCollectionEditor.EditValue Method

Edits the value of the specified object with the specified service provider and context.

Syntax

public override object EditValue (System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value)

Parameters

context
An System.ComponentModel.ITypeDescriptorContext object that can be used to gain additional context information such as the associated control.
provider
A service provider object through which editing services can be obtained.
value
An instance of the object being edited.

Returns

An System.Web.UI.ExpressionBindingCollection object containing the selected expressions; otherwise, if no expressions are selected, the value object.

Remarks

The erload:System.Web.UI.Design.ExpressionsCollectionEditor.EditValue method launches the user interface for editing the value object. The designer host calls the erload:System.Web.UI.Design.ExpressionsCollectionEditor.EditValue method when you attempt to edit the value of a property that this editor is associated with. The input service provider is used to obtain any editing services that are required within the erload:System.Web.UI.Design.ExpressionsCollectionEditor.EditValue.

A designer host, such as vsprvslong, uses the System.Web.Compilation.ExpressionBuilder and System.Web.UI.Design.ExpressionEditor class implementations with the System.Web.UI.Design.ExpressionsCollectionEditor and System.Web.UI.Design.ExpressionsCollectionConverter classes to set the expression bindings for control properties at design time, and the System.Web.UI.Design.ControlPersister class to persist the expressions for run time. Expression strings reference a localizable resource, an application setting, a connection string, or a custom expression type. The expression string is bound to the control property at design time, and then used at run time to determine the value for the property.

If users cancel the user interface without modifying the expression binding collection, the erload:System.Web.UI.Design.ExpressionsCollectionEditor.EditValue method returns the input value parameter.

Requirements

Namespace: System.Web.UI.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 2.0.0.0