forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSystem.ComponentModel.Primitives.cs
More file actions
299 lines (298 loc) · 17.3 KB
/
System.ComponentModel.Primitives.cs
File metadata and controls
299 lines (298 loc) · 17.3 KB
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
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// ------------------------------------------------------------------------------
// Changes to this file must follow the http://aka.ms/api-review process.
// ------------------------------------------------------------------------------
namespace System.ComponentModel
{
[System.AttributeUsageAttribute(System.AttributeTargets.All)]
public sealed partial class BrowsableAttribute : System.Attribute
{
public static readonly System.ComponentModel.BrowsableAttribute Default;
public static readonly System.ComponentModel.BrowsableAttribute No;
public static readonly System.ComponentModel.BrowsableAttribute Yes;
public BrowsableAttribute(bool browsable) { }
public bool Browsable { get { throw null; } }
public override bool Equals(object? obj) { throw null; }
public override int GetHashCode() { throw null; }
public override bool IsDefaultAttribute() { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.All)]
public partial class CategoryAttribute : System.Attribute
{
public CategoryAttribute() { }
public CategoryAttribute(string category) { }
public static System.ComponentModel.CategoryAttribute Action { get { throw null; } }
public static System.ComponentModel.CategoryAttribute Appearance { get { throw null; } }
public static System.ComponentModel.CategoryAttribute Asynchronous { get { throw null; } }
public static System.ComponentModel.CategoryAttribute Behavior { get { throw null; } }
public string Category { get { throw null; } }
public static System.ComponentModel.CategoryAttribute Data { get { throw null; } }
public static System.ComponentModel.CategoryAttribute Default { get { throw null; } }
public static System.ComponentModel.CategoryAttribute Design { get { throw null; } }
public static System.ComponentModel.CategoryAttribute DragDrop { get { throw null; } }
public static System.ComponentModel.CategoryAttribute Focus { get { throw null; } }
public static System.ComponentModel.CategoryAttribute Format { get { throw null; } }
public static System.ComponentModel.CategoryAttribute Key { get { throw null; } }
public static System.ComponentModel.CategoryAttribute Layout { get { throw null; } }
public static System.ComponentModel.CategoryAttribute Mouse { get { throw null; } }
public static System.ComponentModel.CategoryAttribute WindowStyle { get { throw null; } }
public override bool Equals(object? obj) { throw null; }
public override int GetHashCode() { throw null; }
protected virtual string? GetLocalizedString(string value) { throw null; }
public override bool IsDefaultAttribute() { throw null; }
}
[System.ComponentModel.DesignerCategoryAttribute("Component")]
public partial class Component : System.MarshalByRefObject, System.ComponentModel.IComponent, System.IDisposable
{
public Component() { }
protected virtual bool CanRaiseEvents { get { throw null; } }
[System.ComponentModel.BrowsableAttribute(false)]
[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public System.ComponentModel.IContainer? Container { get { throw null; } }
[System.ComponentModel.BrowsableAttribute(false)]
[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
protected bool DesignMode { get { throw null; } }
protected System.ComponentModel.EventHandlerList Events { get { throw null; } }
[System.ComponentModel.BrowsableAttribute(false)]
[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public virtual System.ComponentModel.ISite? Site { get { throw null; } set { } }
[System.ComponentModel.BrowsableAttribute(false)]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public event System.EventHandler? Disposed { add { } remove { } }
public void Dispose() { }
protected virtual void Dispose(bool disposing) { }
~Component() { }
protected virtual object? GetService(System.Type service) { throw null; }
public override string ToString() { throw null; }
}
public partial class ComponentCollection : System.Collections.ReadOnlyCollectionBase
{
public ComponentCollection(System.ComponentModel.IComponent[] components) { }
public virtual System.ComponentModel.IComponent? this[int index] { get { throw null; } }
public virtual System.ComponentModel.IComponent? this[string? name] { get { throw null; } }
public void CopyTo(System.ComponentModel.IComponent[] array, int index) { }
}
[System.AttributeUsageAttribute(System.AttributeTargets.All)]
public partial class DescriptionAttribute : System.Attribute
{
public static readonly System.ComponentModel.DescriptionAttribute Default;
public DescriptionAttribute() { }
public DescriptionAttribute(string description) { }
public virtual string Description { get { throw null; } }
protected string DescriptionValue { get { throw null; } set { } }
public override bool Equals(object? obj) { throw null; }
public override int GetHashCode() { throw null; }
public override bool IsDefaultAttribute() { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public sealed partial class DesignerCategoryAttribute : System.Attribute
{
public static readonly System.ComponentModel.DesignerCategoryAttribute Component;
public static readonly System.ComponentModel.DesignerCategoryAttribute Default;
public static readonly System.ComponentModel.DesignerCategoryAttribute Form;
public static readonly System.ComponentModel.DesignerCategoryAttribute Generic;
public DesignerCategoryAttribute() { }
public DesignerCategoryAttribute(string category) { }
public string Category { get { throw null; } }
public override object TypeId { get { throw null; } }
public override bool Equals(object? obj) { throw null; }
public override int GetHashCode() { throw null; }
public override bool IsDefaultAttribute() { throw null; }
}
public enum DesignerSerializationVisibility
{
Hidden = 0,
Visible = 1,
Content = 2,
}
[System.AttributeUsageAttribute(System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Method | System.AttributeTargets.Property)]
public sealed partial class DesignerSerializationVisibilityAttribute : System.Attribute
{
public static readonly System.ComponentModel.DesignerSerializationVisibilityAttribute Content;
public static readonly System.ComponentModel.DesignerSerializationVisibilityAttribute Default;
public static readonly System.ComponentModel.DesignerSerializationVisibilityAttribute Hidden;
public static readonly System.ComponentModel.DesignerSerializationVisibilityAttribute Visible;
public DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility visibility) { }
public System.ComponentModel.DesignerSerializationVisibility Visibility { get { throw null; } }
public override bool Equals(object? obj) { throw null; }
public override int GetHashCode() { throw null; }
public override bool IsDefaultAttribute() { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.All)]
public sealed partial class DesignOnlyAttribute : System.Attribute
{
public static readonly System.ComponentModel.DesignOnlyAttribute Default;
public static readonly System.ComponentModel.DesignOnlyAttribute No;
public static readonly System.ComponentModel.DesignOnlyAttribute Yes;
public DesignOnlyAttribute(bool isDesignOnly) { }
public bool IsDesignOnly { get { throw null; } }
public override bool Equals(object? obj) { throw null; }
public override int GetHashCode() { throw null; }
public override bool IsDefaultAttribute() { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Event | System.AttributeTargets.Method | System.AttributeTargets.Property)]
public partial class DisplayNameAttribute : System.Attribute
{
public static readonly System.ComponentModel.DisplayNameAttribute Default;
public DisplayNameAttribute() { }
public DisplayNameAttribute(string displayName) { }
public virtual string DisplayName { get { throw null; } }
protected string DisplayNameValue { get { throw null; } set { } }
public override bool Equals(object? obj) { throw null; }
public override int GetHashCode() { throw null; }
public override bool IsDefaultAttribute() { throw null; }
}
public sealed partial class EventHandlerList : System.IDisposable
{
public EventHandlerList() { }
public System.Delegate? this[object key] { get { throw null; } set { } }
public void AddHandler(object key, System.Delegate? value) { }
public void AddHandlers(System.ComponentModel.EventHandlerList listToAddFrom) { }
public void Dispose() { }
public void RemoveHandler(object key, System.Delegate? value) { }
}
[System.ComponentModel.TypeConverterAttribute("System.ComponentModel.ComponentConverter, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public partial interface IComponent : System.IDisposable
{
System.ComponentModel.ISite? Site { get; set; }
event System.EventHandler? Disposed;
}
public partial interface IContainer : System.IDisposable
{
System.ComponentModel.ComponentCollection Components { get; }
void Add(System.ComponentModel.IComponent? component);
void Add(System.ComponentModel.IComponent? component, string? name);
void Remove(System.ComponentModel.IComponent? component);
}
[System.AttributeUsageAttribute(System.AttributeTargets.All)]
public sealed partial class ImmutableObjectAttribute : System.Attribute
{
public static readonly System.ComponentModel.ImmutableObjectAttribute Default;
public static readonly System.ComponentModel.ImmutableObjectAttribute No;
public static readonly System.ComponentModel.ImmutableObjectAttribute Yes;
public ImmutableObjectAttribute(bool immutable) { }
public bool Immutable { get { throw null; } }
public override bool Equals(object? obj) { throw null; }
public override int GetHashCode() { throw null; }
public override bool IsDefaultAttribute() { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Class)]
public sealed partial class InitializationEventAttribute : System.Attribute
{
public InitializationEventAttribute(string eventName) { }
public string EventName { get { throw null; } }
}
public partial class InvalidAsynchronousStateException : System.ArgumentException
{
public InvalidAsynchronousStateException() { }
protected InvalidAsynchronousStateException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public InvalidAsynchronousStateException(string? message) { }
public InvalidAsynchronousStateException(string? message, System.Exception? innerException) { }
}
public partial class InvalidEnumArgumentException : System.ArgumentException
{
public InvalidEnumArgumentException() { }
protected InvalidEnumArgumentException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public InvalidEnumArgumentException(string? message) { }
public InvalidEnumArgumentException(string? message, System.Exception? innerException) { }
public InvalidEnumArgumentException(string? argumentName, int invalidValue, System.Type enumClass) { }
}
public partial interface ISite : System.IServiceProvider
{
System.ComponentModel.IComponent Component { get; }
System.ComponentModel.IContainer Container { get; }
bool DesignMode { get; }
string? Name { get; set; }
}
public partial interface ISupportInitialize
{
void BeginInit();
void EndInit();
}
public partial interface ISynchronizeInvoke
{
bool InvokeRequired { get; }
System.IAsyncResult BeginInvoke(System.Delegate method, object?[]? args);
object? EndInvoke(System.IAsyncResult result);
object? Invoke(System.Delegate method, object?[]? args);
}
[System.AttributeUsageAttribute(System.AttributeTargets.All)]
public sealed partial class LocalizableAttribute : System.Attribute
{
public static readonly System.ComponentModel.LocalizableAttribute Default;
public static readonly System.ComponentModel.LocalizableAttribute No;
public static readonly System.ComponentModel.LocalizableAttribute Yes;
public LocalizableAttribute(bool isLocalizable) { }
public bool IsLocalizable { get { throw null; } }
public override bool Equals(object? obj) { throw null; }
public override int GetHashCode() { throw null; }
public override bool IsDefaultAttribute() { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.All)]
public sealed partial class MergablePropertyAttribute : System.Attribute
{
public static readonly System.ComponentModel.MergablePropertyAttribute Default;
public static readonly System.ComponentModel.MergablePropertyAttribute No;
public static readonly System.ComponentModel.MergablePropertyAttribute Yes;
public MergablePropertyAttribute(bool allowMerge) { }
public bool AllowMerge { get { throw null; } }
public override bool Equals(object? obj) { throw null; }
public override int GetHashCode() { throw null; }
public override bool IsDefaultAttribute() { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Property)]
public sealed partial class NotifyParentPropertyAttribute : System.Attribute
{
public static readonly System.ComponentModel.NotifyParentPropertyAttribute Default;
public static readonly System.ComponentModel.NotifyParentPropertyAttribute No;
public static readonly System.ComponentModel.NotifyParentPropertyAttribute Yes;
public NotifyParentPropertyAttribute(bool notifyParent) { }
public bool NotifyParent { get { throw null; } }
public override bool Equals(object? obj) { throw null; }
public override int GetHashCode() { throw null; }
public override bool IsDefaultAttribute() { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.All)]
public sealed partial class ParenthesizePropertyNameAttribute : System.Attribute
{
public static readonly System.ComponentModel.ParenthesizePropertyNameAttribute Default;
public ParenthesizePropertyNameAttribute() { }
public ParenthesizePropertyNameAttribute(bool needParenthesis) { }
public bool NeedParenthesis { get { throw null; } }
public override bool Equals(object? o) { throw null; }
public override int GetHashCode() { throw null; }
public override bool IsDefaultAttribute() { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.All)]
public sealed partial class ReadOnlyAttribute : System.Attribute
{
public static readonly System.ComponentModel.ReadOnlyAttribute Default;
public static readonly System.ComponentModel.ReadOnlyAttribute No;
public static readonly System.ComponentModel.ReadOnlyAttribute Yes;
public ReadOnlyAttribute(bool isReadOnly) { }
public bool IsReadOnly { get { throw null; } }
public override bool Equals(object? value) { throw null; }
public override int GetHashCode() { throw null; }
public override bool IsDefaultAttribute() { throw null; }
}
public enum RefreshProperties
{
None = 0,
All = 1,
Repaint = 2,
}
[System.AttributeUsageAttribute(System.AttributeTargets.All)]
public sealed partial class RefreshPropertiesAttribute : System.Attribute
{
public static readonly System.ComponentModel.RefreshPropertiesAttribute All;
public static readonly System.ComponentModel.RefreshPropertiesAttribute Default;
public static readonly System.ComponentModel.RefreshPropertiesAttribute Repaint;
public RefreshPropertiesAttribute(System.ComponentModel.RefreshProperties refresh) { }
public System.ComponentModel.RefreshProperties RefreshProperties { get { throw null; } }
public override bool Equals(object? value) { throw null; }
public override int GetHashCode() { throw null; }
public override bool IsDefaultAttribute() { throw null; }
}
}