IExpressionEditorService.CreateExpressionEditor 方法

定义

创建一个新的表达式编辑器。

重载

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

创建一个新的表达式编辑器。

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

使用指定的程序集、导入命名空间、变量、表达式文本和表达式类型创建一个新的表达式编辑器。

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

使用指定的程序集、导入命名空间、变量、表达式文本和初始大小创建一个新的表达式编辑器。

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

使用指定的程序集、导入命名空间、变量、表达式文本、表达式类型和初始大小创建一个新的表达式编辑器。

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

创建一个新的表达式编辑器。

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, System::String ^ text);
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);
abstract member CreateExpressionEditor : System.Activities.Presentation.Hosting.AssemblyContextControlItem * System.Activities.Presentation.Hosting.ImportedNamespaceContextItem * System.Collections.Generic.List<System.Activities.Presentation.Model.ModelItem> * string -> System.Activities.Presentation.View.IExpressionEditorInstance
Public Function CreateExpressionEditor (assemblies As AssemblyContextControlItem, importedNamespaces As ImportedNamespaceContextItem, variables As List(Of ModelItem), text As String) As IExpressionEditorInstance

参数

assemblies
AssemblyContextControlItem

用于设置编辑器会话的上下文。

importedNamespaces
ImportedNamespaceContextItem

要由表达式编辑器使用的导入命名空间。

variables
List<ModelItem>

表达式编辑器的局部变量。

text
String

一个用于填充表达式编辑器的字符串。

返回

返回 IExpressionEditorInstance

适用于

CreateExpressionEditor(AssemblyContextControlItem, ImportedNamespaceContextItem, List<ModelItem>, String, 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, System::String ^ text, Type ^ expressionType);
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);
abstract member CreateExpressionEditor : System.Activities.Presentation.Hosting.AssemblyContextControlItem * System.Activities.Presentation.Hosting.ImportedNamespaceContextItem * System.Collections.Generic.List<System.Activities.Presentation.Model.ModelItem> * string * Type -> System.Activities.Presentation.View.IExpressionEditorInstance
Public Function CreateExpressionEditor (assemblies As AssemblyContextControlItem, importedNamespaces As ImportedNamespaceContextItem, variables As List(Of ModelItem), text As String, expressionType As Type) As IExpressionEditorInstance

参数

assemblies
AssemblyContextControlItem

环境中的局部和被引用程序集。

importedNamespaces
ImportedNamespaceContextItem

由表达式编辑器使用的导入命名空间。

variables
List<ModelItem>

表达式编辑器的局部变量。

text
String

一个用于填充表达式编辑器的字符串。

expressionType
Type

表达式的类型。

返回

IExpressionEditorInstance 的新实例。

适用于

CreateExpressionEditor(AssemblyContextControlItem, ImportedNamespaceContextItem, List<ModelItem>, String, 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, System::String ^ text, System::Windows::Size initialSize);
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);
abstract member CreateExpressionEditor : System.Activities.Presentation.Hosting.AssemblyContextControlItem * System.Activities.Presentation.Hosting.ImportedNamespaceContextItem * System.Collections.Generic.List<System.Activities.Presentation.Model.ModelItem> * string * System.Windows.Size -> System.Activities.Presentation.View.IExpressionEditorInstance
Public Function CreateExpressionEditor (assemblies As AssemblyContextControlItem, importedNamespaces As ImportedNamespaceContextItem, variables As List(Of ModelItem), text As String, initialSize As Size) As IExpressionEditorInstance

参数

assemblies
AssemblyContextControlItem

环境中的局部和被引用程序集。

importedNamespaces
ImportedNamespaceContextItem

由表达式编辑器使用的导入命名空间。

variables
List<ModelItem>

表达式编辑器的局部变量。

text
String

一个用于填充表达式编辑器的字符串。

initialSize
Size

表达式编辑器控件的初始高度和宽度。

返回

IExpressionEditorInstance 的新实例。

适用于

CreateExpressionEditor(AssemblyContextControlItem, ImportedNamespaceContextItem, List<ModelItem>, String, Type, 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, System::String ^ text, Type ^ expressionType, System::Windows::Size initialSize);
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);
abstract member CreateExpressionEditor : System.Activities.Presentation.Hosting.AssemblyContextControlItem * System.Activities.Presentation.Hosting.ImportedNamespaceContextItem * System.Collections.Generic.List<System.Activities.Presentation.Model.ModelItem> * string * Type * System.Windows.Size -> System.Activities.Presentation.View.IExpressionEditorInstance
Public Function CreateExpressionEditor (assemblies As AssemblyContextControlItem, importedNamespaces As ImportedNamespaceContextItem, variables As List(Of ModelItem), text As String, expressionType As Type, initialSize As Size) As IExpressionEditorInstance

参数

assemblies
AssemblyContextControlItem

环境中的局部和被引用程序集。

importedNamespaces
ImportedNamespaceContextItem

由表达式编辑器使用的导入命名空间。

variables
List<ModelItem>

表达式编辑器的局部变量。

text
String

一个用于填充表达式编辑器的字符串。

expressionType
Type

表达式的类型。

initialSize
Size

表达式编辑器控件的初始高度和宽度。

返回

IExpressionEditorInstance 的新实例。

适用于