forked from dotnet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIExpressionEditorService.xml
196 lines (188 loc) · 17 KB
/
IExpressionEditorService.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<Type Name="IExpressionEditorService" FullName="System.Activities.Presentation.View.IExpressionEditorService">
<TypeSignature Language="C#" Value="public interface IExpressionEditorService" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract IExpressionEditorService" />
<TypeSignature Language="DocId" Value="T:System.Activities.Presentation.View.IExpressionEditorService" />
<AssemblyInfo>
<AssemblyName>System.Activities.Presentation</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces />
<Docs>
<summary>Creates or closes expression editors.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
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 <xref:System.Activities.Presentation.View.IExpressionEditorService> can also be used to manage instances of custom expression editors. To register a custom expression editor, you must publish the <xref:System.Activities.Presentation.View.IExpressionEditorService> using the following code :
`this.expressionEditorService = new ExpressionEditorService();`
`this.workflowDesigner.Context.Services.Publish<IExpressionEditorService>(this.expressionEditorService);`
An expression editor is created when an <xref:System.Activities.Presentation.View.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 <xref:System.Activities.Presentation.View.IExpressionEditorService> in the application.
If you are using an <xref:System.Activities.Presentation.View.ExpressionTextBox> control in a custom activity designer, it is not necessary to create and destroy expression editors using this interface. The <xref:System.Activities.Presentation.View.ExpressionTextBox> class manages this for you.
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName="CloseExpressionEditors">
<MemberSignature Language="C#" Value="public void CloseExpressionEditors ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void CloseExpressionEditors() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Activities.Presentation.View.IExpressionEditorService.CloseExpressionEditors" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Activities.Presentation</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Closes all the active expression editors.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="CreateExpressionEditor">
<MemberSignature Language="C#" Value="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);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Activities.Presentation.View.IExpressionEditorInstance CreateExpressionEditor(class System.Activities.Presentation.Hosting.AssemblyContextControlItem assemblies, class System.Activities.Presentation.Hosting.ImportedNamespaceContextItem importedNamespaces, class System.Collections.Generic.List`1<class System.Activities.Presentation.Model.ModelItem> variables, string text) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Activities.Presentation.View.IExpressionEditorService.CreateExpressionEditor(System.Activities.Presentation.Hosting.AssemblyContextControlItem,System.Activities.Presentation.Hosting.ImportedNamespaceContextItem,System.Collections.Generic.List{System.Activities.Presentation.Model.ModelItem},System.String)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Activities.Presentation</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Activities.Presentation.View.IExpressionEditorInstance</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="assemblies" Type="System.Activities.Presentation.Hosting.AssemblyContextControlItem" />
<Parameter Name="importedNamespaces" Type="System.Activities.Presentation.Hosting.ImportedNamespaceContextItem" />
<Parameter Name="variables" Type="System.Collections.Generic.List<System.Activities.Presentation.Model.ModelItem>" />
<Parameter Name="text" Type="System.String" />
</Parameters>
<Docs>
<param name="assemblies">Used to set the context for the editor session.</param>
<param name="importedNamespaces">The imported namespaces to be used by the expression editor.</param>
<param name="variables">Local variables for the expression editor.</param>
<param name="text">A string used to populate the expression editor.</param>
<summary>Creates a new expression editor.</summary>
<returns>Returns a <see cref="T:System.Activities.Presentation.View.IExpressionEditorInstance" />.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="CreateExpressionEditor">
<MemberSignature Language="C#" Value="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);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Activities.Presentation.View.IExpressionEditorInstance CreateExpressionEditor(class System.Activities.Presentation.Hosting.AssemblyContextControlItem assemblies, class System.Activities.Presentation.Hosting.ImportedNamespaceContextItem importedNamespaces, class System.Collections.Generic.List`1<class System.Activities.Presentation.Model.ModelItem> variables, string text, class System.Type expressionType) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Activities.Presentation.View.IExpressionEditorService.CreateExpressionEditor(System.Activities.Presentation.Hosting.AssemblyContextControlItem,System.Activities.Presentation.Hosting.ImportedNamespaceContextItem,System.Collections.Generic.List{System.Activities.Presentation.Model.ModelItem},System.String,System.Type)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Activities.Presentation</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Activities.Presentation.View.IExpressionEditorInstance</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="assemblies" Type="System.Activities.Presentation.Hosting.AssemblyContextControlItem" />
<Parameter Name="importedNamespaces" Type="System.Activities.Presentation.Hosting.ImportedNamespaceContextItem" />
<Parameter Name="variables" Type="System.Collections.Generic.List<System.Activities.Presentation.Model.ModelItem>" />
<Parameter Name="text" Type="System.String" />
<Parameter Name="expressionType" Type="System.Type" />
</Parameters>
<Docs>
<param name="assemblies">The local and referenced assemblies in the environment.</param>
<param name="importedNamespaces">The imported namespaces used by the expression editor.</param>
<param name="variables">Local variables for the expression editor.</param>
<param name="text">A string used to populate the expression editor.</param>
<param name="expressionType">The type of the expression.</param>
<summary>Creates a new expression editor using the specified assemblies, imported namespaces, variables, expression text, and expression type.</summary>
<returns>A new instance of the <see cref="T:System.Activities.Presentation.View.IExpressionEditorInstance" />.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="CreateExpressionEditor">
<MemberSignature Language="C#" Value="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);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Activities.Presentation.View.IExpressionEditorInstance CreateExpressionEditor(class System.Activities.Presentation.Hosting.AssemblyContextControlItem assemblies, class System.Activities.Presentation.Hosting.ImportedNamespaceContextItem importedNamespaces, class System.Collections.Generic.List`1<class System.Activities.Presentation.Model.ModelItem> variables, string text, valuetype System.Windows.Size initialSize) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Activities.Presentation.View.IExpressionEditorService.CreateExpressionEditor(System.Activities.Presentation.Hosting.AssemblyContextControlItem,System.Activities.Presentation.Hosting.ImportedNamespaceContextItem,System.Collections.Generic.List{System.Activities.Presentation.Model.ModelItem},System.String,System.Windows.Size)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Activities.Presentation</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Activities.Presentation.View.IExpressionEditorInstance</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="assemblies" Type="System.Activities.Presentation.Hosting.AssemblyContextControlItem" />
<Parameter Name="importedNamespaces" Type="System.Activities.Presentation.Hosting.ImportedNamespaceContextItem" />
<Parameter Name="variables" Type="System.Collections.Generic.List<System.Activities.Presentation.Model.ModelItem>" />
<Parameter Name="text" Type="System.String" />
<Parameter Name="initialSize" Type="System.Windows.Size" />
</Parameters>
<Docs>
<param name="assemblies">The local and referenced assemblies in the environment.</param>
<param name="importedNamespaces">The imported namespaces used by the expression editor.</param>
<param name="variables">Local variables for the expression editor.</param>
<param name="text">A string used to populate the expression editor.</param>
<param name="initialSize">The initial height and width of the expression editor control.</param>
<summary>Creates a new expression editor using the specified assemblies, imported namespaces, variables, expression text, and the initial size.</summary>
<returns>A new instance of the <see cref="T:System.Activities.Presentation.View.IExpressionEditorInstance" />.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="CreateExpressionEditor">
<MemberSignature Language="C#" Value="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);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Activities.Presentation.View.IExpressionEditorInstance CreateExpressionEditor(class System.Activities.Presentation.Hosting.AssemblyContextControlItem assemblies, class System.Activities.Presentation.Hosting.ImportedNamespaceContextItem importedNamespaces, class System.Collections.Generic.List`1<class System.Activities.Presentation.Model.ModelItem> variables, string text, class System.Type expressionType, valuetype System.Windows.Size initialSize) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Activities.Presentation.View.IExpressionEditorService.CreateExpressionEditor(System.Activities.Presentation.Hosting.AssemblyContextControlItem,System.Activities.Presentation.Hosting.ImportedNamespaceContextItem,System.Collections.Generic.List{System.Activities.Presentation.Model.ModelItem},System.String,System.Type,System.Windows.Size)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Activities.Presentation</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Activities.Presentation.View.IExpressionEditorInstance</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="assemblies" Type="System.Activities.Presentation.Hosting.AssemblyContextControlItem" />
<Parameter Name="importedNamespaces" Type="System.Activities.Presentation.Hosting.ImportedNamespaceContextItem" />
<Parameter Name="variables" Type="System.Collections.Generic.List<System.Activities.Presentation.Model.ModelItem>" />
<Parameter Name="text" Type="System.String" />
<Parameter Name="expressionType" Type="System.Type" />
<Parameter Name="initialSize" Type="System.Windows.Size" />
</Parameters>
<Docs>
<param name="assemblies">The local and referenced assemblies in the environment.</param>
<param name="importedNamespaces">The imported namespaces used by the expression editor.</param>
<param name="variables">Local variables for the expression editor.</param>
<param name="text">A string used to populate the expression editor.</param>
<param name="expressionType">The type of the expression.</param>
<param name="initialSize">The initial height and width of the expression editor control.</param>
<summary>Creates a new expression editor using the specified assemblies, imported namespaces, variables, expression text, expression type, and the initial size.</summary>
<returns>A new instance of the <see cref="T:System.Activities.Presentation.View.IExpressionEditorInstance" />.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="UpdateContext">
<MemberSignature Language="C#" Value="public void UpdateContext (System.Activities.Presentation.Hosting.AssemblyContextControlItem assemblies, System.Activities.Presentation.Hosting.ImportedNamespaceContextItem importedNamespaces);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void UpdateContext(class System.Activities.Presentation.Hosting.AssemblyContextControlItem assemblies, class System.Activities.Presentation.Hosting.ImportedNamespaceContextItem importedNamespaces) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Activities.Presentation.View.IExpressionEditorService.UpdateContext(System.Activities.Presentation.Hosting.AssemblyContextControlItem,System.Activities.Presentation.Hosting.ImportedNamespaceContextItem)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Activities.Presentation</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="assemblies" Type="System.Activities.Presentation.Hosting.AssemblyContextControlItem" />
<Parameter Name="importedNamespaces" Type="System.Activities.Presentation.Hosting.ImportedNamespaceContextItem" />
</Parameters>
<Docs>
<param name="assemblies">Used to set the context for the editor session.</param>
<param name="importedNamespaces">The imported namespaces used by the expression editor.</param>
<summary>Updates the context for the editing session.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>