IExpressionEditorService Interface

.NET Framework (current version)
 
System_CAPS_noteNote

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

Creates or closes expression editors.

Namespace:   System.Activities.Presentation.View
Assembly:  System.Activities.Presentation (in System.Activities.Presentation.dll)

public interface IExpressionEditorService

NameDescription
System_CAPS_pubmethodCloseExpressionEditors()

Closes all the active expression editors.

System_CAPS_pubmethodCreateExpressionEditor(AssemblyContextControlItem, ImportedNamespaceContextItem, List<ModelItem>, String)

Creates a new expression editor.

System_CAPS_pubmethodCreateExpressionEditor(AssemblyContextControlItem, ImportedNamespaceContextItem, List<ModelItem>, String, Size)

Creates a new expression editor using the specified assemblies, imported namespaces, variables, expression text, and the initial size.

System_CAPS_pubmethodCreateExpressionEditor(AssemblyContextControlItem, ImportedNamespaceContextItem, List<ModelItem>, String, Type)

Creates a new expression editor using the specified assemblies, imported namespaces, variables, expression text, and expression type.

System_CAPS_pubmethodCreateExpressionEditor(AssemblyContextControlItem, ImportedNamespaceContextItem, List<ModelItem>, String, Type, Size)

Creates a new expression editor using the specified assemblies, imported namespaces, variables, expression text, expression type, and the initial size.

System_CAPS_pubmethodUpdateContext(AssemblyContextControlItem, ImportedNamespaceContextItem)

Updates the context for the editing session.

An expression editor is a Visual Basic control used to edit expressions inside Visual Studio. This control provides a full-fledged IDE editing experience, including IntelliSense, colorization, ParamInfo, error squiggles, among other features.

The IExpressionEditorService can also be used to manage instances of custom expression editors. To register a custom expression editor, you must publish the IExpressionEditorService using the following code :

this.expressionEditorService = new ExpressionEditorService();

this.workflowDesigner.Context.Services.Publish<IExpressionEditorService>(this.expressionEditorService);

An expression editor is created when an ExpressionTextBox instance gains focus and is destroyed on losing focus of a valid expression, or on reloading of the designer.

The default expression editor is not available for use in rehosted applications. If the default expression editor is used in a rehosted application, a text box is available for editing. However, custom expression editors can be used in a rehosted application by publishing the IExpressionEditorService in the application.

If you are using an ExpressionTextBox control in a custom activity designer, it is not necessary to create and destroy expression editors using this interface. The ExpressionTextBox class manages this for you.

.NET Framework
Available since 4.0
Return to top
Show: