IExpressionEditorService.CreateExpressionEditor Method (AssemblyContextControlItem, ImportedNamespaceContextItem, List<ModelItem>, String, Type, Size)

.NET Framework (current version)
 

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

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

IExpressionEditorInstance CreateExpressionEditor(
	AssemblyContextControlItem assemblies,
	ImportedNamespaceContextItem importedNamespaces,
	List<ModelItem> variables,
	string text,
	Type expressionType,
	Size initialSize
)

Parameters

assemblies
Type: System.Activities.Presentation.Hosting.AssemblyContextControlItem

The local and referenced assemblies in the environment.

importedNamespaces
Type: System.Activities.Presentation.Hosting.ImportedNamespaceContextItem

The imported namespaces used by the expression editor.

variables
Type: System.Collections.Generic.List<ModelItem>

Local variables for the expression editor.

text
Type: System.String

A string used to populate the expression editor.

expressionType
Type: System.Type

The type of the expression.

initialSize
Type: System.Windows.Size

The initial height and width of the expression editor control.

.NET Framework
Available since 4.0
Return to top
Show: