IExpressionEditorService.CreateExpressionEditor Method

Definition

Creates a new expression editor.

Overloads

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

Creates a new expression editor.

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

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

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

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

CreateExpressionEditor(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.

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

Creates a new expression editor.

public System.Activities.Presentation.View.IExpressionEditorInstance CreateExpressionEditor(System.Activities.Presentation.Hosting.AssemblyContextControlItem assemblies, System.Activities.Presentation.Hosting.ImportedNamespaceContextItem importedNamespaces, System.Collections.Generic.List<System.Activities.Presentation.Model.ModelItem> variables, string text);

Parameters

assemblies
AssemblyContextControlItem

Used to set the context for the editor session.

importedNamespaces
ImportedNamespaceContextItem

The imported namespaces to be used by the expression editor.

variables
List<ModelItem>

Local variables for the expression editor.

text
String

A string used to populate the expression editor.

Returns

Returns a IExpressionEditorInstance.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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

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

public System.Activities.Presentation.View.IExpressionEditorInstance CreateExpressionEditor(System.Activities.Presentation.Hosting.AssemblyContextControlItem assemblies, System.Activities.Presentation.Hosting.ImportedNamespaceContextItem importedNamespaces, System.Collections.Generic.List<System.Activities.Presentation.Model.ModelItem> variables, string text, Type expressionType);

Parameters

assemblies
AssemblyContextControlItem

The local and referenced assemblies in the environment.

importedNamespaces
ImportedNamespaceContextItem

The imported namespaces used by the expression editor.

variables
List<ModelItem>

Local variables for the expression editor.

text
String

A string used to populate the expression editor.

expressionType
Type

The type of the expression.

Returns

A new instance of the IExpressionEditorInstance.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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

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

public System.Activities.Presentation.View.IExpressionEditorInstance CreateExpressionEditor(System.Activities.Presentation.Hosting.AssemblyContextControlItem assemblies, System.Activities.Presentation.Hosting.ImportedNamespaceContextItem importedNamespaces, System.Collections.Generic.List<System.Activities.Presentation.Model.ModelItem> variables, string text, System.Windows.Size initialSize);

Parameters

assemblies
AssemblyContextControlItem

The local and referenced assemblies in the environment.

importedNamespaces
ImportedNamespaceContextItem

The imported namespaces used by the expression editor.

variables
List<ModelItem>

Local variables for the expression editor.

text
String

A string used to populate the expression editor.

initialSize
Size

The initial height and width of the expression editor control.

Returns

A new instance of the IExpressionEditorInstance.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

CreateExpressionEditor(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.

public System.Activities.Presentation.View.IExpressionEditorInstance CreateExpressionEditor(System.Activities.Presentation.Hosting.AssemblyContextControlItem assemblies, System.Activities.Presentation.Hosting.ImportedNamespaceContextItem importedNamespaces, System.Collections.Generic.List<System.Activities.Presentation.Model.ModelItem> variables, string text, Type expressionType, System.Windows.Size initialSize);

Parameters

assemblies
AssemblyContextControlItem

The local and referenced assemblies in the environment.

importedNamespaces
ImportedNamespaceContextItem

The imported namespaces used by the expression editor.

variables
List<ModelItem>

Local variables for the expression editor.

text
String

A string used to populate the expression editor.

expressionType
Type

The type of the expression.

initialSize
Size

The initial height and width of the expression editor control.

Returns

A new instance of the IExpressionEditorInstance.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1