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

.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 a new expression editor using the specified assemblies, imported namespaces, variables, expression text, 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,
	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.

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: