Class MemberSelectorEditor
Provides a user interface editor that displays a dialog for selecting members of a workflow expression type.
public class MemberSelectorEditor : DataSourceTypeEditor
- Inheritance
-
MemberSelectorEditor
- Derived
- Inherited Members
Constructors
MemberSelectorEditor()
Initializes a new instance of the MemberSelectorEditor class.
public MemberSelectorEditor()
MemberSelectorEditor(bool)
Initializes a new instance of the MemberSelectorEditor class using either a multi- or single-selection dialog.
public MemberSelectorEditor(bool allowMultiSelection)
Parameters
allowMultiSelection
boolIndicates whether the interface allows selecting multiple members.
MemberSelectorEditor(Func<Expression, Type>, bool)
Initializes a new instance of the MemberSelectorEditor class using either a multi- or single-selection dialog and the specified method for selecting the expression type.
public MemberSelectorEditor(Func<Expression, Type> typeSelector, bool allowMultiSelection)
Parameters
typeSelector
Func<Expression, Type>A method for selecting the type from which to select members.
allowMultiSelection
boolIndicates whether the interface allows selecting multiple members.
Methods
EditValue(ITypeDescriptorContext, IServiceProvider, object)
Edits the specified object's value using the editor style indicated by the GetEditStyle() method.
public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
Parameters
context
ITypeDescriptorContextAn ITypeDescriptorContext that can be used to gain additional context information.
provider
IServiceProviderAn IServiceProvider that this editor can use to obtain services.
value
objectThe object to edit.
Returns
- 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.
GetEditStyle(ITypeDescriptorContext)
Gets the editor style used by the EditValue(IServiceProvider, object) method.
public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context)
Parameters
context
ITypeDescriptorContextAn ITypeDescriptorContext that can be used to gain additional context information.
Returns
- UITypeEditorEditStyle
A UITypeEditorEditStyle value that indicates the style of editor used by the EditValue(IServiceProvider, object) method. If the UITypeEditor does not support this method, then GetEditStyle() will return None.