-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
SubMenuStyleCollectionEditor.xml
238 lines (218 loc) · 17 KB
/
SubMenuStyleCollectionEditor.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
<Type Name="SubMenuStyleCollectionEditor" FullName="System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor">
<TypeSignature Language="C#" Value="public class SubMenuStyleCollectionEditor : System.ComponentModel.Design.CollectionEditor" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit SubMenuStyleCollectionEditor extends System.ComponentModel.Design.CollectionEditor" />
<TypeSignature Language="DocId" Value="T:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor" />
<TypeSignature Language="VB.NET" Value="Public Class SubMenuStyleCollectionEditor
Inherits CollectionEditor" />
<TypeSignature Language="F#" Value="type SubMenuStyleCollectionEditor = class
 inherit CollectionEditor" />
<TypeSignature Language="C++ CLI" Value="public ref class SubMenuStyleCollectionEditor : System::ComponentModel::Design::CollectionEditor" />
<AssemblyInfo>
<AssemblyName>System.Design</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.ComponentModel.Design.CollectionEditor</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Provides a component editor for the <see cref="T:System.Web.UI.WebControls.SubMenuStyleCollection" /> object in the associated <see cref="T:System.Web.UI.WebControls.Menu" /> control.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor> class provides a user interface for editing the <xref:System.Web.UI.WebControls.SubMenuStyle> elements of the <xref:System.Web.UI.WebControls.SubMenuStyleCollection> object in the associated <xref:System.Web.UI.WebControls.Menu> control at design time, under the control of the <xref:System.Web.UI.Design.WebControls.MenuDesigner> object.
There is a <xref:System.Web.UI.WebControls.SubMenuStyleCollection> associated with the <xref:System.Web.UI.WebControls.Menu.LevelSubMenuStyles%2A> property of the <xref:System.Web.UI.WebControls.Menu> control. The <xref:System.Web.UI.WebControls.SubMenuStyleCollection> object is used to apply styles to static submenu items that depend on their level (nesting depth) in the menu structure.
The <xref:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor> is invoked, for example, by selecting the ellipsis button (**…**) on the **LevelSubMenuStyles** row in the **Properties** grid of the visual designer.
The <xref:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor.CanSelectMultipleInstances%2A> method always returns `false` to indicate that only one object can be selected at a time in the editor. The <xref:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor.CreateCollectionForm%2A> method creates a new form to display and edit the <xref:System.Web.UI.WebControls.SubMenuStyleCollection>.
The <xref:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor.CreateInstance%2A> method creates a new instance of the specified collection item type. The <xref:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor.CreateNewItemTypes%2A> method returns an array of types that the editor can create.
## Examples
The following code example shows how to use the <xref:System.ComponentModel.EditorAttribute> attribute to associate the <xref:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor> and <xref:System.Drawing.Design.UITypeEditor> (the collection editor base class) classes with a property in a custom control, derived from the <xref:System.Web.UI.WebControls.WebControl> class, that gets and sets a <xref:System.Web.UI.WebControls.SubMenuStyleCollection> collection.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.UI.Design.WebControls.MenuEditors/CS/MenuEditors.cs" id="Snippet5":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.UI.Design.WebControls.MenuEditors/VB/MenuEditors.vb" id="Snippet5":::
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.SubMenuStyle" />
<altmember cref="T:System.Web.UI.WebControls.SubMenuStyleCollection" />
<altmember cref="T:System.Web.UI.WebControls.Menu" />
<altmember cref="T:System.Web.UI.Design.WebControls.MenuDesigner" />
<altmember cref="P:System.Web.UI.WebControls.Menu.LevelSubMenuStyles" />
<altmember cref="T:System.ComponentModel.Design.CollectionEditor" />
<altmember cref="T:System.Web.UI.Design.WebControls.MenuItemStyleCollectionEditor" />
<altmember cref="T:System.Web.UI.WebControls.MenuItemStyleCollection" />
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public SubMenuStyleCollectionEditor (Type type);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Type type) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor.#ctor(System.Type)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (type As Type)" />
<MemberSignature Language="F#" Value="new System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor : Type -> System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor" Usage="new System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor type" />
<MemberSignature Language="C++ CLI" Value="public:
 SubMenuStyleCollectionEditor(Type ^ type);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Design</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.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>
</Attributes>
<Parameters>
<Parameter Name="type" Type="System.Type" />
</Parameters>
<Docs>
<param name="type">The <see cref="T:System.Type" /> of the collection to edit.</param>
<summary>Initializes a new instance of the <see cref="T:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor" /> class.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The .NET Framework internally constructs a new instance of the <xref:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor> class when you select, for example, the ellipsis button (**…**) on the **LevelSubMenuStyles** row in the **Properties** grid of the visual designer when designing a <xref:System.Web.UI.WebControls.Menu> control or a control that is derived from the <xref:System.Web.UI.WebControls.Menu> class.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.SubMenuStyleCollection" />
<altmember cref="T:System.Web.UI.WebControls.Menu" />
<altmember cref="T:System.Web.UI.Design.WebControls.MenuDesigner" />
<altmember cref="T:System.ComponentModel.Design.CollectionEditor" />
</Docs>
</Member>
<Member MemberName="CanSelectMultipleInstances">
<MemberSignature Language="C#" Value="protected override bool CanSelectMultipleInstances ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance bool CanSelectMultipleInstances() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor.CanSelectMultipleInstances" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function CanSelectMultipleInstances () As Boolean" />
<MemberSignature Language="F#" Value="override this.CanSelectMultipleInstances : unit -> bool" Usage="subMenuStyleCollectionEditor.CanSelectMultipleInstances " />
<MemberSignature Language="C++ CLI" Value="protected:
 override bool CanSelectMultipleInstances();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Design</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Gets a value indicating whether multiple <see cref="T:System.Web.UI.WebControls.SubMenuStyle" /> elements can be selected in the editor at one time.</summary>
<returns>Always <see langword="false" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor.CanSelectMultipleInstances%2A> method always returns `false`; thus, only one <xref:System.Web.UI.WebControls.SubMenuStyle> object can be selected at a time in the <xref:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor> object.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.SubMenuStyle" />
<altmember cref="T:System.Web.UI.WebControls.SubMenuStyleCollection" />
<altmember cref="T:System.Web.UI.WebControls.Menu" />
<altmember cref="T:System.Web.UI.Design.WebControls.MenuDesigner" />
<altmember cref="M:System.ComponentModel.Design.CollectionEditor.CanSelectMultipleInstances" />
<altmember cref="T:System.ComponentModel.Design.CollectionEditor" />
</Docs>
</Member>
<Member MemberName="CreateCollectionForm">
<MemberSignature Language="C#" Value="protected override System.ComponentModel.Design.CollectionEditor.CollectionForm CreateCollectionForm ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance class System.ComponentModel.Design.CollectionEditor/CollectionForm CreateCollectionForm() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor.CreateCollectionForm" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function CreateCollectionForm () As CollectionEditor.CollectionForm" />
<MemberSignature Language="F#" Value="override this.CreateCollectionForm : unit -> System.ComponentModel.Design.CollectionEditor.CollectionForm" Usage="subMenuStyleCollectionEditor.CreateCollectionForm " />
<MemberSignature Language="C++ CLI" Value="protected:
 override System::ComponentModel::Design::CollectionEditor::CollectionForm ^ CreateCollectionForm();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Design</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.ComponentModel.Design.CollectionEditor+CollectionForm</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Creates a new form to display and edit the current <see cref="T:System.Web.UI.WebControls.SubMenuStyleCollection" /> collection.</summary>
<returns>An instance of the <see cref="T:System.ComponentModel.Design.CollectionEditor.CollectionForm" /> to use as the <see cref="T:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor.CreateCollectionForm%2A> method calls the <xref:System.ComponentModel.Design.CollectionEditor.CreateCollectionForm%2A> base method to create the <xref:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor> form, and then formats a caption for the form.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.SubMenuStyle" />
<altmember cref="T:System.Web.UI.WebControls.SubMenuStyleCollection" />
<altmember cref="T:System.Web.UI.WebControls.Menu" />
<altmember cref="T:System.Web.UI.Design.WebControls.MenuDesigner" />
<altmember cref="T:System.ComponentModel.Design.CollectionEditor" />
</Docs>
</Member>
<Member MemberName="CreateInstance">
<MemberSignature Language="C#" Value="protected override object CreateInstance (Type itemType);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance object CreateInstance(class System.Type itemType) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor.CreateInstance(System.Type)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function CreateInstance (itemType As Type) As Object" />
<MemberSignature Language="F#" Value="override this.CreateInstance : Type -> obj" Usage="subMenuStyleCollectionEditor.CreateInstance itemType" />
<MemberSignature Language="C++ CLI" Value="protected:
 override System::Object ^ CreateInstance(Type ^ itemType);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Design</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="itemType" Type="System.Type" />
</Parameters>
<Docs>
<param name="itemType">The <see cref="T:System.Type" /> of the item to create.</param>
<summary>Creates a new instance of the specified collection item type.</summary>
<returns>A new instance of the specified type, which should be <see cref="T:System.Web.UI.WebControls.SubMenuStyle" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor.CreateInstance%2A> method is used to create new <xref:System.Web.UI.WebControls.SubMenuStyle> objects. The <xref:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor.CreateInstance%2A> calls the <xref:System.Activator.CreateInstance%2A> method to access the activation methods for late-bound support.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.SubMenuStyle" />
<altmember cref="T:System.Web.UI.WebControls.SubMenuStyleCollection" />
<altmember cref="T:System.Web.UI.WebControls.Menu" />
<altmember cref="T:System.Web.UI.Design.WebControls.MenuDesigner" />
<altmember cref="T:System.Activator" />
<altmember cref="M:System.Activator.CreateInstance(System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object[],System.Globalization.CultureInfo)" />
</Docs>
</Member>
<Member MemberName="CreateNewItemTypes">
<MemberSignature Language="C#" Value="protected override Type[] CreateNewItemTypes ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance class System.Type[] CreateNewItemTypes() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor.CreateNewItemTypes" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function CreateNewItemTypes () As Type()" />
<MemberSignature Language="F#" Value="override this.CreateNewItemTypes : unit -> Type[]" Usage="subMenuStyleCollectionEditor.CreateNewItemTypes " />
<MemberSignature Language="C++ CLI" Value="protected:
 override cli::array <Type ^> ^ CreateNewItemTypes();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Design</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Type[]</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Gets the data types that this collection editor can create.</summary>
<returns>A type array of the data types the <see cref="T:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor" /> can create.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.UI.Design.WebControls.SubMenuStyleCollectionEditor> object can create <xref:System.Web.UI.WebControls.SubMenuStyle> type objects.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.SubMenuStyle" />
<altmember cref="T:System.Web.UI.WebControls.SubMenuStyleCollection" />
<altmember cref="M:System.ComponentModel.Design.CollectionEditor.CreateNewItemTypes" />
<altmember cref="T:System.Web.UI.WebControls.Menu" />
<altmember cref="T:System.Web.UI.Design.WebControls.MenuDesigner" />
</Docs>
</Member>
</Members>
</Type>