/
DesignerActionList.xml
358 lines (317 loc) · 26.9 KB
/
DesignerActionList.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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
<Type Name="DesignerActionList" FullName="System.ComponentModel.Design.DesignerActionList">
<TypeSignature Language="C#" Value="public class DesignerActionList" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit DesignerActionList extends System.Object" />
<TypeSignature Language="DocId" Value="T:System.ComponentModel.Design.DesignerActionList" />
<TypeSignature Language="VB.NET" Value="Public Class DesignerActionList" />
<TypeSignature Language="F#" Value="type DesignerActionList = class" />
<TypeSignature Language="C++ CLI" Value="public ref class DesignerActionList" />
<AssemblyInfo>
<AssemblyName>System.Design</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms.Design</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<TypeForwardingChain>
<TypeForwarding From="System.Design" FromVersion="4.0.0.0" To="System.Windows.Forms.Design" ToVersion="4.0.0.0" FrameworkAlternate="windowsdesktop-3.0;windowsdesktop-3.1" />
<TypeForwarding From="System.Design" FromVersion="5.0.0.0" To="System.Windows.Forms.Design" ToVersion="5.0.0.0" FrameworkAlternate="windowsdesktop-5.0" />
<TypeForwarding From="System.Design" FromVersion="6.0.0.0" To="System.Windows.Forms.Design" ToVersion="6.0.0.0" FrameworkAlternate="windowsdesktop-6.0" />
<TypeForwarding From="System.Design" FromVersion="7.0.0.0" To="System.Windows.Forms.Design" ToVersion="7.0.0.0" FrameworkAlternate="windowsdesktop-7.0" />
<TypeForwarding From="System.Design" FromVersion="8.0.0.0" To="System.Windows.Forms.Design" ToVersion="8.0.0.0" FrameworkAlternate="windowsdesktop-8.0" />
<TypeForwarding From="System.Design" FromVersion="9.0.0.0" To="System.Windows.Forms.Design" ToVersion="9.0.0.0" FrameworkAlternate="windowsdesktop-9.0" />
</TypeForwardingChain>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute FrameworkAlternate="windowsdesktop-8.0;windowsdesktop-9.0">
<AttributeName Language="C#">[System.Runtime.CompilerServices.Nullable(0)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.Nullable(0)>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="windowsdesktop-8.0;windowsdesktop-9.0">
<AttributeName Language="C#">[System.Runtime.CompilerServices.NullableContext(1)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.NullableContext(1)>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Provides the base class for types that define a list of items used to create a smart tag panel.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The `DesignerAction` feature enables components and controls to display context-sensitive information and commands. The `DesignerAction` feature can be thought of as a replacement for designer verbs, because a <xref:System.ComponentModel.Design.DesignerActionItem> can be displayed in the smart tag panel and also in the shortcut menu associated with a component or control. The <xref:System.ComponentModel.Design.DesignerActionList> class represents the main point of interaction for developers who want to add smart tag support to their custom components and controls.
<xref:System.ComponentModel.Design.DesignerActionList> is the base class, derived from by component developers in order to populate a smart tag panel. A smart tag panel represents the menu-like user interface (UI) for smart tags.
This derived class may implement the `virtual` <xref:System.ComponentModel.Design.DesignerActionList.GetSortedActionItems%2A> method to return a collection of objects derived from <xref:System.ComponentModel.Design.DesignerActionItem>. These objects represent the smart tag panel items. Each item is displayed in the panel according to its type. For example, a <xref:System.ComponentModel.Design.DesignerActionTextItem> is displayed as a static text label. Active panel items, represented by the <xref:System.ComponentModel.Design.DesignerActionPropertyItem> and <xref:System.ComponentModel.Design.DesignerActionMethodItem> types, have a corresponding publicly accessible property or method, respectively, that implements the functionality for that item.
For more information about how to add items to the smart tag panel, see the <xref:System.ComponentModel.Design.DesignerActionList.GetSortedActionItems%2A> method.
> [!NOTE]
> Forms and dialog boxes can be displayed by members of the class derived from <xref:System.ComponentModel.Design.DesignerActionList>. By default, the parent of these windows will be the container window for the smart tag panel. Explicitly parenting these child windows to another service or window may cause smart tags to display improperly.
>
> Smart-tag panels do not support scrolling or paging, so be careful not to populate your panels with many smart-tag items. Too many items may result in the smart-tag panel extending beyond the screen boundary.
## Examples
The following code example demonstrates how to create a collection of <xref:System.ComponentModel.Design.DesignerActionItem> objects.
For a complete explanation of this code example, see [How to: Attach Smart Tags to a Windows Forms Component](https://docs.microsoft.com/previous-versions/visualstudio/visual-studio-2013/ms171830(v=vs.120)).
:::code language="csharp" source="~/snippets/csharp/System.ComponentModel.Design/DesignerActionHeaderItem/Overview/designeractions.cs" id="Snippet2":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.ComponentModel.Design.DesignerAction.AddDesignerActions/VB/designeractions.vb" id="Snippet2":::
]]></format>
</remarks>
<altmember cref="T:System.ComponentModel.Design.DesignerVerb" />
<altmember cref="T:System.ComponentModel.Design.DesignerActionItem" />
<altmember cref="M:System.ComponentModel.Design.DesignerActionList.GetSortedActionItems" />
<altmember cref="T:System.ComponentModel.Design.DesignerActionListCollection" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/visualstudio/visual-studio-2013/ms171567(v=vs.120)">Designer Commands and the DesignerAction Object Model for Windows Forms</related>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public DesignerActionList (System.ComponentModel.IComponent component);" FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1;windowsdesktop-3.0;windowsdesktop-3.1;windowsdesktop-5.0;windowsdesktop-6.0;windowsdesktop-7.0" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.ComponentModel.IComponent component) cil managed" />
<MemberSignature Language="DocId" Value="M:System.ComponentModel.Design.DesignerActionList.#ctor(System.ComponentModel.IComponent)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (component As IComponent)" />
<MemberSignature Language="F#" Value="new System.ComponentModel.Design.DesignerActionList : System.ComponentModel.IComponent -> System.ComponentModel.Design.DesignerActionList" Usage="new System.ComponentModel.Design.DesignerActionList component" />
<MemberSignature Language="C++ CLI" Value="public:
 DesignerActionList(System::ComponentModel::IComponent ^ component);" />
<MemberSignature Language="C#" Value="public DesignerActionList (System.ComponentModel.IComponent? component);" FrameworkAlternate="windowsdesktop-8.0;windowsdesktop-9.0" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Design</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms.Design</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="windowsdesktop-8.0;windowsdesktop-9.0">
<AttributeName Language="C#">[System.Runtime.CompilerServices.NullableContext(2)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.NullableContext(2)>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="component" Type="System.ComponentModel.IComponent" />
</Parameters>
<Docs>
<param name="component">A component related to the <see cref="T:System.ComponentModel.Design.DesignerActionList" />.</param>
<summary>Initializes a new instance of the <see cref="T:System.ComponentModel.Design.DesignerActionList" /> class.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.ComponentModel.Design.DesignerActionList> constructor sets the <xref:System.ComponentModel.Design.DesignerActionList.AutoShow%2A> property to `false`.
## Examples
The following code example demonstrates how to create a collection of <xref:System.ComponentModel.Design.DesignerActionItem> objects.
For a complete explanation of this code example, see [How to: Attach Smart Tags to a Windows Forms Component](https://docs.microsoft.com/previous-versions/visualstudio/visual-studio-2013/ms171830(v=vs.120)).
:::code language="csharp" source="~/snippets/csharp/System.ComponentModel.Design/DesignerActionHeaderItem/Overview/designeractions.cs" id="Snippet4":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.ComponentModel.Design.DesignerAction.AddDesignerActions/VB/designeractions.vb" id="Snippet4":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="AutoShow">
<MemberSignature Language="C#" Value="public virtual bool AutoShow { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool AutoShow" />
<MemberSignature Language="DocId" Value="P:System.ComponentModel.Design.DesignerActionList.AutoShow" />
<MemberSignature Language="VB.NET" Value="Public Overridable Property AutoShow As Boolean" />
<MemberSignature Language="F#" Value="member this.AutoShow : bool with get, set" Usage="System.ComponentModel.Design.DesignerActionList.AutoShow" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual property bool AutoShow { bool get(); void set(bool value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Design</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms.Design</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether the smart tag panel should automatically be displayed when it is created.</summary>
<value>
<see langword="true" /> if the panel should be shown when the owning component is created; otherwise, <see langword="false" />. The default is <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
If the property value is set to `true`, the component with which this <xref:System.ComponentModel.Design.DesignerActionList> is associated will automatically expand and display the smart tag panel when the component is created.
You can opt out of this behavior by setting the <xref:System.Windows.Forms.Design.DesignerOptions.ObjectBoundSmartTagAutoShow%2A?displayProperty=nameWithType> property to `false`.
## Examples
The following code example demonstrates how to create a collection of <xref:System.ComponentModel.Design.DesignerActionItem> objects.
For a complete explanation of this code example, see [How to: Attach Smart Tags to a Windows Forms Component](https://docs.microsoft.com/previous-versions/visualstudio/visual-studio-2013/ms171830(v=vs.120)).
:::code language="csharp" source="~/snippets/csharp/System.ComponentModel.Design/DesignerActionHeaderItem/Overview/designeractions.cs" id="Snippet7":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.ComponentModel.Design.DesignerAction.AddDesignerActions/VB/designeractions.vb" id="Snippet7":::
]]></format>
</remarks>
<altmember cref="M:System.ComponentModel.Design.DesignerActionUIService.HideUI(System.ComponentModel.IComponent)" />
<altmember cref="M:System.ComponentModel.Design.DesignerActionUIService.ShowUI(System.ComponentModel.IComponent)" />
<altmember cref="T:System.ComponentModel.Design.DesignerOptionService" />
</Docs>
</Member>
<Member MemberName="Component">
<MemberSignature Language="C#" Value="public System.ComponentModel.IComponent Component { get; }" FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1;windowsdesktop-3.0;windowsdesktop-3.1;windowsdesktop-5.0;windowsdesktop-6.0;windowsdesktop-7.0" />
<MemberSignature Language="ILAsm" Value=".property instance class System.ComponentModel.IComponent Component" />
<MemberSignature Language="DocId" Value="P:System.ComponentModel.Design.DesignerActionList.Component" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Component As IComponent" />
<MemberSignature Language="F#" Value="member this.Component : System.ComponentModel.IComponent" Usage="System.ComponentModel.Design.DesignerActionList.Component" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::ComponentModel::IComponent ^ Component { System::ComponentModel::IComponent ^ get(); };" />
<MemberSignature Language="C#" Value="public System.ComponentModel.IComponent? Component { get; }" FrameworkAlternate="windowsdesktop-8.0;windowsdesktop-9.0" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Design</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms.Design</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="windowsdesktop-8.0;windowsdesktop-9.0">
<AttributeName Language="C#">[System.Runtime.CompilerServices.Nullable(2)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.Nullable(2)>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="windowsdesktop-8.0;windowsdesktop-9.0">
<AttributeName Language="C#">[get: System.Runtime.CompilerServices.NullableContext(2)]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.CompilerServices.NullableContext(2)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.ComponentModel.IComponent</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the component related to <see cref="T:System.ComponentModel.Design.DesignerActionList" />.</summary>
<value>A component related to <see cref="T:System.ComponentModel.Design.DesignerActionList" />.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetService">
<MemberSignature Language="C#" Value="public object GetService (Type serviceType);" FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1;windowsdesktop-3.0;windowsdesktop-3.1;windowsdesktop-5.0;windowsdesktop-6.0;windowsdesktop-7.0" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance object GetService(class System.Type serviceType) cil managed" />
<MemberSignature Language="DocId" Value="M:System.ComponentModel.Design.DesignerActionList.GetService(System.Type)" />
<MemberSignature Language="VB.NET" Value="Public Function GetService (serviceType As Type) As Object" />
<MemberSignature Language="F#" Value="member this.GetService : Type -> obj" Usage="designerActionList.GetService serviceType" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Object ^ GetService(Type ^ serviceType);" />
<MemberSignature Language="C#" Value="public object? GetService (Type serviceType);" FrameworkAlternate="windowsdesktop-8.0;windowsdesktop-9.0" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Design</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms.Design</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="serviceType" Type="System.Type" />
</Parameters>
<Docs>
<param name="serviceType">A service provided by the <see cref="T:System.ComponentModel.Component" />.</param>
<summary>Returns an object that represents a service provided by the component associated with the <see cref="T:System.ComponentModel.Design.DesignerActionList" />.</summary>
<returns>An <see cref="T:System.Object" /> that represents a service provided by the <see cref="T:System.ComponentModel.Component" />. This value is <see langword="null" /> if the <see cref="T:System.ComponentModel.Component" /> does not provide the specified service.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetSortedActionItems">
<MemberSignature Language="C#" Value="public virtual System.ComponentModel.Design.DesignerActionItemCollection GetSortedActionItems ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.ComponentModel.Design.DesignerActionItemCollection GetSortedActionItems() cil managed" />
<MemberSignature Language="DocId" Value="M:System.ComponentModel.Design.DesignerActionList.GetSortedActionItems" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function GetSortedActionItems () As DesignerActionItemCollection" />
<MemberSignature Language="F#" Value="abstract member GetSortedActionItems : unit -> System.ComponentModel.Design.DesignerActionItemCollection
override this.GetSortedActionItems : unit -> System.ComponentModel.Design.DesignerActionItemCollection" Usage="designerActionList.GetSortedActionItems " />
<MemberSignature Language="C++ CLI" Value="public:
 virtual System::ComponentModel::Design::DesignerActionItemCollection ^ GetSortedActionItems();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Design</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms.Design</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.ComponentModel.Design.DesignerActionItemCollection</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Returns the collection of <see cref="T:System.ComponentModel.Design.DesignerActionItem" /> objects contained in the list.</summary>
<returns>A <see cref="T:System.ComponentModel.Design.DesignerActionItem" /> array that contains the items in this list.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The `virtual` <xref:System.ComponentModel.Design.DesignerActionList.GetSortedActionItems%2A> method is implemented to return, in the expected display order, a collection of objects derived from the <xref:System.ComponentModel.Design.DesignerActionItem> class. These items can be of the following specific types.
|Type|Description|
|----------|-----------------|
|<xref:System.ComponentModel.Design.DesignerActionHeaderItem>|The group label, displayed in bold.|
|<xref:System.ComponentModel.Design.DesignerActionTextItem>|A label, displayed in a plain font.|
|<xref:System.ComponentModel.Design.DesignerActionPropertyItem>|A panel item associated with a property. May also display a check mark or property editor associated with the underlying property.|
|<xref:System.ComponentModel.Design.DesignerActionMethodItem>|A panel item displayed as a hyperlink and associated with a method.|
For every <xref:System.ComponentModel.Design.DesignerActionMethodItem> and <xref:System.ComponentModel.Design.DesignerActionPropertyItem>, a corresponding method or property must be added to the programmer-supplied class derived from the <xref:System.ComponentModel.Design.DesignerActionList> class. Each method and property item is displayed as an active entry; interacting with it through the user interface (UI) invokes the corresponding method or property, respectively.
Property items have a special panel-item interface that enables display and manipulation of their corresponding property values. For more information, see the <xref:System.ComponentModel.Design.DesignerActionPropertyItem> class.
The order of the items in the returned array reflects the order that they will appear in the panel. The items are grouped according to the <xref:System.ComponentModel.Design.DesignerActionItem.Category%2A> property, using the following rules:
- The category of the first item encountered signifies the start of the first group. That group continues as long as each succeeding item is of the same category. When an item of a different, new category is encountered, a new group is created and the item is placed in it.
- If an item has a type different than the current group, but that category has already been used, the item is placed in the matching existing category.
- If an item does not have a category, it is placed in a miscellaneous group at the end of the panel. This group also contains items whose <xref:System.ComponentModel.Design.DesignerActionItem.AllowAssociate%2A> property is set to `false`.
The <xref:System.ComponentModel.Design.DesignerActionList.GetSortedActionItems%2A> method is called when the panel is first created. You must call the <xref:System.ComponentModel.Design.DesignerActionUIService.Refresh%2A> method to update the list of items displayed in the panel.
## Examples
The following code example demonstrates how to create a collection of <xref:System.ComponentModel.Design.DesignerActionItem> objects.
For a complete explanation of this code example, see [How to: Attach Smart Tags to a Windows Forms Component](https://docs.microsoft.com/previous-versions/visualstudio/visual-studio-2013/ms171830(v=vs.120)).
:::code language="csharp" source="~/snippets/csharp/System.ComponentModel.Design/DesignerActionHeaderItem/Overview/designeractions.cs" id="Snippet7":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Winforms/System.ComponentModel.Design.DesignerAction.AddDesignerActions/VB/designeractions.vb" id="Snippet7":::
]]></format>
</remarks>
<altmember cref="T:System.ComponentModel.Design.DesignerActionItem" />
<altmember cref="P:System.ComponentModel.Design.DesignerActionItem.Category" />
<altmember cref="P:System.ComponentModel.Design.DesignerActionItem.AllowAssociate" />
<altmember cref="T:System.ComponentModel.PropertyDescriptor" />
</Docs>
</Member>
</Members>
</Type>