1 #Region "Microsoft.VisualBasic::d8613a0d57e28aa1cd5a678e2a400de2, Microsoft.VisualBasic.Core\Serialization\Controls\Contrls.vb"
2
3     ' Author:
4     
5     '       asuka (amethyst.asuka@gcmodeller.org)
6     '       xie (genetics@smrucc.org)
7     '       xieguigang (xie.guigang@live.com)
8     
9     ' Copyright (c) 2018 GPL3 Licensed
10     
11     
12     ' GNU GENERAL PUBLIC LICENSE (GPL3)
13     
14     
15     ' This program is free software: you can redistribute it and/or modify
16     ' it under the terms of the GNU General Public License as published by
17     ' the Free Software Foundation, either version 3 of the License, or
18     ' (at your option) any later version.
19     
20     ' This program is distributed in the hope that it will be useful,
21     ' but WITHOUT ANY WARRANTY; without even the implied warranty of
22     ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23     ' GNU General Public License for more details.
24     
25     ' You should have received a copy of the GNU General Public License
26     ' along with this program. If not, see <http://www.gnu.org/licenses/>.
27
28
29
30     ' /********************************************************************************/
31
32     ' Summaries:
33
34     '     Class Button
35     
36     '         Properties: AutoSizeMode, DialogResult
37     
38     '     Class ButtonBase
39     
40     '         Properties: AutoEllipsis, AutoSize, BackColor, FlatAppearance, FlatStyle
41     '                     Image, ImageAlign, ImageIndex, ImageKey, ImageList
42     '                     Text, TextAlign, TextImageRelation, UseCompatibleTextRendering, UseMnemonic
43     '                     UseVisualStyleBackColor
44     
45     '     Class Control
46     
47     '         Properties: AccessibilityObject, AccessibleDefaultActionDescription, AccessibleDescription, AccessibleName, AccessibleRole
48     '                     AllowDrop, Anchor, AutoScrollOffset, AutoSize, BackColor
49     '                     BackgroundImage, BackgroundImageLayout, BindingContext, Bottom, Bounds
50     '                     CanEnableIme, CanFocus, CanSelect, Capture, CausesValidation
51     '                     ClientRectangle, ClientSize, CompanyName, ContainsFocus, Created
52     '                     CreateParams, Cursor, DataBindings, DefaultCursor, DefaultImeMode
53     '                     DefaultMargin, DefaultMaximumSize, DefaultMinimumSize, DefaultPadding, DefaultSize
54     '                     DisplayRectangle, Disposing, Dock, DoubleBuffered, Enabled
55     '                     Focused, Font, FontHeight, ForeColor, Handle
56     '                     HasChildren, Height, ImeMode, ImeModeBase, InvokeRequired
57     '                     IsAccessible, IsDisposed, IsHandleCreated, IsMirrored, Left
58     '                     Location, Margin, MaximumSize, MinimumSize, Name
59     '                     Padding, Parent, PreferredSize, ProductName, ProductVersion
60     '                     RecreatingHandle, Region, RenderRightToLeft, ResizeRedraw, Right
61     '                     RightToLeft, ScaleChildren, ShowFocusCues, ShowKeyboardCues, Size
62     '                     TabIndex, TabStop, Tag, Text, Top
63     '                     UseWaitCursor, Visible, Width, WindowTarget
64     
65     
66     ' /********************************************************************************/
67
68 #End Region
69
70 Imports System.ComponentModel
71 Imports System.Drawing
72 Imports System.Drawing.Design
73 Imports System.Runtime.InteropServices
74
75 Namespace Serialization.Controls
76
77     Public Class Button : Inherits ButtonBase
78         '         ' Summary:
79         '     Gets or sets the mode by which the System.Windows.Forms.Button automatically
80         '     resizes itself.
81         '         ' Returns:
82         '     One of the System.Windows.Forms.AutoSizeMode values. The default value is System.Windows.Forms.AutoSizeMode.GrowOnly.
83         <Browsable(True)> <DefaultValue(AutoSizeMode.GrowOnly)> <Localizable(True)>
84         Public Property AutoSizeMode As AutoSizeMode
85         '         ' Summary:
86         '     Gets or sets a value that is returned to the parent form when the button is clicked.
87         '         ' Returns:
88         '     One of the System.Windows.Forms.DialogResult values. The default value is None.
89         '         ' Exceptions:
90         '   T:System.ComponentModel.InvalidEnumArgumentException:
91         '     The value assigned is not one of the System.Windows.Forms.DialogResult values.
92         <DefaultValue(DialogResult.None)>
93         Public Overridable Property DialogResult As DialogResult
94
95     End Class
96
97     Public Class ButtonBase : Inherits Control
98         '         ' Summary:
99         '     Gets or sets a value indicating whether the ellipsis character (...) appears
100         '     at the right edge of the control, denoting that the control text extends beyond
101         '     the specified length of the control.
102         '         ' Returns:
103         '     true if the additional label text is to be indicated by an ellipsis; otherwise,
104         '     false. The default is true.
105         <Browsable(True)> <DefaultValue(False)> <EditorBrowsable(EditorBrowsableState.Always)>
106         Public Property AutoEllipsis As Boolean
107         '         ' Summary:
108         '     Gets or sets a value that indicates whether the control resizes based on its
109         '     contents.
110         '         ' Returns:
111         '     true if the control automatically resizes based on its contents; otherwise, false.
112         '     The default is true.
113         <Browsable(True)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)> <EditorBrowsable(EditorBrowsableState.Always)>
114         Public Overrides Property AutoSize As Boolean
115         '         ' Summary:
116         '     Gets or sets the background color of the control.
117         '         ' Returns:
118         '     A System.Drawing.Color value representing the background color.
119         Public Overrides Property BackColor As Color
120         '         ' Summary:
121         '     Gets the appearance of the border and the colors used to indicate check state
122         '     and mouse state.
123         '         ' Returns:
124         '     One of the System.Windows.Forms.FlatButtonAppearance values.
125         <Browsable(True)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Content)>
126         Public Property FlatAppearance As FlatButtonAppearance
127         '         ' Summary:
128         '     Gets or sets the flat style appearance of the button control.
129         '         ' Returns:
130         '     One of the System.Windows.Forms.FlatStyle values. The default value is Standard.
131         '         ' Exceptions:
132         '   T:System.ComponentModel.InvalidEnumArgumentException:
133         '     The value assigned is not one of the System.Windows.Forms.FlatStyle values.
134         <DefaultValue(FlatStyle.Standard)> <Localizable(True)>
135         Public Property FlatStyle As FlatStyle
136         '         ' Summary:
137         '     Gets or sets the image that is displayed on a button control.
138         '         ' Returns:
139         '     The System.Drawing.Image displayed on the button control. The default value is
140         '     null.
141         <Localizable(True)>
142         Public Property Image As Image
143         '         ' Summary:
144         '     Gets or sets the alignment of the image on the button control.
145         '         ' Returns:
146         '     One of the System.Drawing.ContentAlignment values. The default value is MiddleCenter.
147         '         ' Exceptions:
148         '   T:System.ComponentModel.InvalidEnumArgumentException:
149         '     The value assigned is not one of the System.Drawing.ContentAlignment values.
150         <DefaultValue(ContentAlignment.MiddleCenter)> <Localizable(True)>
151         Public Property ImageAlign As ContentAlignment
152         '         ' Summary:
153         '     Gets or sets the image list index value of the image displayed on the button
154         '     control.
155         '         ' Returns:
156         '     A zero-based index, which represents the image position in an System.Windows.Forms.ImageList.
157         '     The default is -1.
158         '         ' Exceptions:
159         '   T:System.ArgumentOutOfRangeException:
160         '     The assigned value is less than the lower bounds of the System.Windows.Forms.ButtonBase.ImageIndex.
161         <DefaultValue(-1)> <Editor("System.Windows.Forms.Design.ImageIndexEditor, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"GetType(UITypeEditor))> <Localizable(True)> <RefreshProperties(RefreshProperties.Repaint)> <TypeConverter(GetType(ImageIndexConverter))>
162         Public Property ImageIndex As Integer
163         '         ' Summary:
164         '     Gets or sets the key accessor for the image in the System.Windows.Forms.ButtonBase.ImageList.
165         '         ' Returns:
166         '     A string representing the key of the image.
167         <DefaultValue("")> <Editor("System.Windows.Forms.Design.ImageIndexEditor, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"GetType(UITypeEditor))> <Localizable(True)> <RefreshProperties(RefreshProperties.Repaint)> <TypeConverter(GetType(ImageKeyConverter))>
168         Public Property ImageKey As String
169         '         ' Summary:
170         '     Gets or sets the System.Windows.Forms.ImageList that contains the System.Drawing.Image
171         '     displayed on a button control.
172         '         ' Returns:
173         '     An System.Windows.Forms.ImageList. The default value is null.
174         <RefreshProperties(RefreshProperties.Repaint)>
175         Public Property ImageList As ImageList
176
177         '         ' Returns:
178         '     The text associated with this control.
179         <Editor("System.ComponentModel.Design.MultilineStringEditor, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"GetType(UITypeEditor))> <SettingsBindable(True)>
180         Public Overrides Property Text As String
181         '         ' Summary:
182         '     Gets or sets the alignment of the text on the button control.
183         '         ' Returns:
184         '     One of the System.Drawing.ContentAlignment values. The default is MiddleCenter.
185         '         ' Exceptions:
186         '   T:System.ComponentModel.InvalidEnumArgumentException:
187         '     The value assigned is not one of the System.Drawing.ContentAlignment values.
188         <DefaultValue(ContentAlignment.MiddleCenter)> <Localizable(True)>
189         Public Overridable Property TextAlign As ContentAlignment
190         '         ' Summary:
191         '     Gets or sets the position of text and image relative to each other.
192         '         ' Returns:
193         '     One of the values of System.Windows.Forms.TextImageRelation. The default is System.Windows.Forms.TextImageRelation.Overlay.
194         '         ' Exceptions:
195         '   T:System.ComponentModel.InvalidEnumArgumentException:
196         '     The value is not one of the System.Windows.Forms.TextImageRelation values.
197         <DefaultValue(TextImageRelation.Overlay)> <Localizable(True)>
198         Public Property TextImageRelation As TextImageRelation
199         '         ' Summary:
200         '     Gets or sets a value that determines whether to use the System.Drawing.Graphics
201         '     class (GDI+) or the System.Windows.Forms.TextRenderer class (GDI) to render text.
202         '         ' Returns:
203         '     true if the System.Drawing.Graphics class should be used to perform text rendering
204         '     for compatibility with versions 1.0 and 1.1. of the .NET Framework; otherwise,
205         '     false. The default is false.
206         <DefaultValue(False)>
207         Public Property UseCompatibleTextRendering As Boolean
208         '         ' Summary:
209         '     Gets or sets a value indicating whether the first character that is preceded
210         '     by an ampersand (&) is used as the mnemonic key of the control.
211         '         ' Returns:
212         '     true if the first character that is preceded by an ampersand (&) is used as the
213         '     mnemonic key of the control; otherwise, false. The default is true.
214         <DefaultValue(True)>
215         Public Property UseMnemonic As Boolean
216         '         ' Summary:
217         '     Gets or sets a value that determines if the background is drawn using visual
218         '     styles, if supported.
219         '         ' Returns:
220         '     true if the background is drawn using visual styles; otherwise, false.
221         Public Property UseVisualStyleBackColor As Boolean
222     End Class
223
224     Public Class Control
225         '         ' Summary:
226         '     Gets the System.Windows.Forms.AccessibleObject assigned to the control.
227         '         ' Returns:
228         '     The System.Windows.Forms.AccessibleObject assigned to the control.
229         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
230         Public ReadOnly Property AccessibilityObject As AccessibleObject
231         '         ' Summary:
232         '     Gets or sets the default action description of the control for use by accessibility
233         '     client applications.
234         '         ' Returns:
235         '     The default action description of the control for use by accessibility client
236         '     applications.
237         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
238         Public Property AccessibleDefaultActionDescription As String
239         '         ' Summary:
240         '     Gets or sets the description of the control used by accessibility client applications.
241         '         ' Returns:
242         '     The description of the control used by accessibility client applications. The
243         '     default is null.
244         <Localizable(True)>
245         Public Property AccessibleDescription As String
246         '         ' Summary:
247         '     Gets or sets the name of the control used by accessibility client applications.
248         '         ' Returns:
249         '     The name of the control used by accessibility client applications. The default
250         '     is null.
251         <Localizable(True)>
252         Public Property AccessibleName As String
253         '         ' Summary:
254         '     Gets or sets the accessible role of the control
255         '         ' Returns:
256         '     One of the values of System.Windows.Forms.AccessibleRole. The default is Default.
257         '         ' Exceptions:
258         '   T:System.ComponentModel.InvalidEnumArgumentException:
259         '     The value assigned is not one of the System.Windows.Forms.AccessibleRole values.
260         <DefaultValue(AccessibleRole.Default)>
261         Public Property AccessibleRole As AccessibleRole
262         '         ' Summary:
263         '     Gets or sets a value indicating whether the control can accept data that the
264         '     user drags onto it.
265         '         ' Returns:
266         '     true if drag-and-drop operations are allowed in the control; otherwise, false.
267         '     The default is false.
268         <DefaultValue(False)>
269         Public Overridable Property AllowDrop As Boolean
270         '         ' Summary:
271         '     Gets or sets the edges of the container to which a control is bound and determines
272         '     how a control is resized with its parent.
273         '         ' Returns:
274         '     A bitwise combination of the System.Windows.Forms.AnchorStyles values. The default
275         '     is Top and Left.
276         <DefaultValue(AnchorStyles.Top Or AnchorStyles.Left)> <Localizable(True)> <RefreshProperties(RefreshProperties.Repaint)>
277         Public Overridable Property Anchor As AnchorStyles
278         '         ' Summary:
279         '     Gets or sets where this control is scrolled to in System.Windows.Forms.ScrollableControl.ScrollControlIntoView(System.Windows.Forms.Control).
280         '         ' Returns:
281         '     A System.Drawing.Point specifying the scroll location. The default is the upper-left
282         '     corner of the control.
283         <Browsable(False)> <DefaultValue(GetType(Point), "0, 0")> <EditorBrowsable(EditorBrowsableState.Advanced)>
284         Public Overridable Property AutoScrollOffset As Point
285         '         ' Summary:
286         '     This property is not relevant for this class.
287         '         ' Returns:
288         '     true if enabled; otherwise, false.
289         <Browsable(False)> <DefaultValue(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Never)> <Localizable(True)> <RefreshProperties(RefreshProperties.All)>
290         Public Overridable Property AutoSize As Boolean
291         '         ' Summary:
292         '     Gets or sets the background color for the control.
293         '         ' Returns:
294         '     A System.Drawing.Color that represents the background color of the control. The
295         '     default is the value of the System.Windows.Forms.Control.DefaultBackColor property.
296         <DispId(-501)>
297         Public Overridable Property BackColor As Color
298         '         ' Summary:
299         '     Gets or sets the background image displayed in the control.
300         '         ' Returns:
301         '     An System.Drawing.Image that represents the image to display in the background
302         '     of the control.
303         <Localizable(True)>
304         Public Overridable Property BackgroundImage As Image
305         '         ' Summary:
306         '     Gets or sets the background image layout as defined in the System.Windows.Forms.ImageLayout
307         '     enumeration.
308         '         ' Returns:
309         '     One of the values of System.Windows.Forms.ImageLayout (System.Windows.Forms.ImageLayout.Center
310         '     , System.Windows.Forms.ImageLayout.None, System.Windows.Forms.ImageLayout.Stretch,
311         '     System.Windows.Forms.ImageLayout.Tile, or System.Windows.Forms.ImageLayout.Zoom).
312         '     System.Windows.Forms.ImageLayout.Tile is the default value.
313         '         ' Exceptions:
314         '   T:System.ComponentModel.InvalidEnumArgumentException:
315         '     The specified enumeration value does not exist.
316         <DefaultValue(ImageLayout.Tile)> <Localizable(True)>
317         Public Overridable Property BackgroundImageLayout As ImageLayout
318         '         ' Summary:
319         '     Gets or sets the System.Windows.Forms.BindingContext for the control.
320         '         ' Returns:
321         '     A System.Windows.Forms.BindingContext for the control.
322         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
323         Public Overridable Property BindingContext As BindingContext
324         '         ' Summary:
325         '     Gets the distance, in pixels, between the bottom edge of the control and the
326         '     top edge of its container's client area.
327         '         ' Returns:
328         '     An System.Int32 representing the distance, in pixels, between the bottom edge
329         '     of the control and the top edge of its container's client area.
330         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
331         Public ReadOnly Property Bottom As Integer
332         '         ' Summary:
333         '     Gets or sets the size and location of the control including its nonclient elements,
334         '     in pixels, relative to the parent control.
335         '         ' Returns:
336         '     A System.Drawing.Rectangle in pixels relative to the parent control that represents
337         '     the size and location of the control including its nonclient elements.
338         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
339         Public Property Bounds As Rectangle
340         '         ' Summary:
341         '     Gets a value indicating whether the control can receive focus.
342         '         ' Returns:
343         '     true if the control can receive focus; otherwise, false.
344         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
345         Public Property CanFocus As Boolean
346         '         ' Summary:
347         '     Gets a value indicating whether the control can be selected.
348         '         ' Returns:
349         '     true if the control can be selected; otherwise, false.
350         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
351         Public Property CanSelect As Boolean
352         '         ' Summary:
353         '     Gets or sets a value indicating whether the control has captured the mouse.
354         '         ' Returns:
355         '     true if the control has captured the mouse; otherwise, false.
356         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
357         Public Property Capture As Boolean
358         '         ' Summary:
359         '     Gets or sets a value indicating whether the control causes validation to be performed
360         '     on any controls that require validation when it receives focus.
361         '         ' Returns:
362         '     true if the control causes validation to be performed on any controls requiring
363         '     validation when it receives focus; otherwise, false. The default is true.
364         <DefaultValue(True)>
365         Public Property CausesValidation As Boolean
366         '         ' Summary:
367         '     Gets the rectangle that represents the client area of the control.
368         '         ' Returns:
369         '     A System.Drawing.Rectangle that represents the client area of the control.
370         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
371         Public Property ClientRectangle As Rectangle
372         '         ' Summary:
373         '     Gets or sets the height and width of the client area of the control.
374         '         ' Returns:
375         '     A System.Drawing.Size that represents the dimensions of the client area of the
376         '     control.
377         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
378         Public Property ClientSize As Size
379         '         ' Summary:
380         '     Gets the name of the company or creator of the application containing the control.
381         '         ' Returns:
382         '     The company name or creator of the application containing the control.
383         <Browsable(False)> <Description("ControlCompanyNameDescr")> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
384         Public Property CompanyName As String
385         '         ' Summary:
386         '     Gets a value indicating whether the control, or one of its child controls, currently
387         '     has the input focus.
388         '         ' Returns:
389         '     true if the control or one of its child controls currently has the input focus;
390         '     otherwise, false.
391         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
392         Public Property ContainsFocus As Boolean
393         '         ' Summary:
394         '     Gets a value indicating whether the control has been created.
395         '         ' Returns:
396         '     true if the control has been created; otherwise, false.
397         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
398         Public ReadOnly Property Created As Boolean
399         '         ' Summary:
400         '     Gets or sets the cursor that is displayed when the mouse pointer is over the
401         '     control.
402         '         ' Returns:
403         '     A System.Windows.Forms.Cursor that represents the cursor to display when the
404         '     mouse pointer is over the control.
405         Public Overridable Property Cursor As Cursor
406         '         ' Summary:
407         '     Gets the data bindings for the control.
408         '         ' Returns:
409         '     A System.Windows.Forms.ControlBindingsCollection that contains the System.Windows.Forms.Binding
410         '     objects for the control.
411         <DesignerSerializationVisibility(DesignerSerializationVisibility.Content)> <ParenthesizePropertyName(True)> <RefreshProperties(RefreshProperties.All)>
412         Public ReadOnly Property DataBindings As ControlBindingsCollection
413         '         ' Summary:
414         '     Gets the rectangle that represents the display area of the control.
415         '         ' Returns:
416         '     A System.Drawing.Rectangle that represents the display area of the control.
417         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
418         Public Overridable ReadOnly Property DisplayRectangle As Rectangle
419         '         ' Summary:
420         '     Gets a value indicating whether the base System.Windows.Forms.Control class is
421         '     in the process of disposing.
422         '         ' Returns:
423         '     true if the base System.Windows.Forms.Control class is in the process of disposing;
424         '     otherwise, false.
425         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
426         Public ReadOnly Property Disposing As Boolean
427         '         ' Summary:
428         '     Gets or sets which control borders are docked to its parent control and determines
429         '     how a control is resized with its parent.
430         '         ' Returns:
431         '     One of the System.Windows.Forms.DockStyle values. The default is System.Windows.Forms.DockStyle.None.
432         '         ' Exceptions:
433         '   T:System.ComponentModel.InvalidEnumArgumentException:
434         '     The value assigned is not one of the System.Windows.Forms.DockStyle values.
435         <DefaultValue(DockStyle.None)> <Localizable(True)> <RefreshProperties(RefreshProperties.Repaint)>
436         Public Overridable Property Dock As DockStyle
437         '         ' Summary:
438         '     Gets or sets a value indicating whether the control can respond to user interaction.
439         '         ' Returns:
440         '     true if the control can respond to user interaction; otherwise, false. The default
441         '     is true.
442         <DispId(-514)> <Localizable(True)>
443         Public Property Enabled As Boolean
444         '         ' Summary:
445         '     Gets a value indicating whether the control has input focus.
446         '         ' Returns:
447         '     true if the control has focus; otherwise, false.
448         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
449         Public Overridable ReadOnly Property Focused As Boolean
450         '         ' Summary:
451         '     Gets or sets the font of the text displayed by the control.
452         '         ' Returns:
453         '     The System.Drawing.Font to apply to the text displayed by the control. The default
454         '     is the value of the System.Windows.Forms.Control.DefaultFont property.
455         <DispId(-512)> <Localizable(True)>
456         Public Overridable Property Font As Font
457         '         ' Summary:
458         '     Gets or sets the foreground color of the control.
459         '         ' Returns:
460         '     The foreground System.Drawing.Color of the control. The default is the value
461         '     of the System.Windows.Forms.Control.DefaultForeColor property.
462         <DispId(-513)>
463         Public Overridable Property ForeColor As Color
464         '         ' Summary:
465         '     Gets the window handle that the control is bound to.
466         '         ' Returns:
467         '     An System.IntPtr that contains the window handle (HWND) of the control.
468         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <DispId(-515)>
469         Public ReadOnly Property Handle As IntPtr
470         '         ' Summary:
471         '     Gets a value indicating whether the control contains one or more child controls.
472         '         ' Returns:
473         '     true if the control contains one or more child controls; otherwise, false.
474         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
475         Public ReadOnly Property HasChildren As Boolean
476         '         ' Summary:
477         '     Gets or sets the height of the control.
478         '         ' Returns:
479         '     The height of the control in pixels.
480         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Always)>
481         Public Property Height As Integer
482         '         ' Summary:
483         '     Gets or sets the Input Method Editor (IME) mode of the control.
484         '         ' Returns:
485         '     One of the System.Windows.Forms.ImeMode values. The default is System.Windows.Forms.ImeMode.Inherit.
486         '         ' Exceptions:
487         '   T:System.ComponentModel.InvalidEnumArgumentException:
488         '     The assigned value is not one of the System.Windows.Forms.ImeMode enumeration
489         '     values.
490         <AmbientValue(ImeMode.Inherit)> <Localizable(True)>
491         Public Property ImeMode As ImeMode
492         '         ' Summary:
493         '     Gets a value indicating whether the caller must call an invoke method when making
494         '     method calls to the control because the caller is on a different thread than
495         '     the one the control was created on.
496         '         ' Returns:
497         '     true if the control's System.Windows.Forms.Control.Handle was created on a different
498         '     thread than the calling thread (indicating that you must make calls to the control
499         '     through an invoke method); otherwise, false.
500         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
501         Public ReadOnly Property InvokeRequired As Boolean
502         '         ' Summary:
503         '     Gets or sets a value indicating whether the control is visible to accessibility
504         '     applications.
505         '         ' Returns:
506         '     true if the control is visible to accessibility applications; otherwise, false.
507         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
508         Public Property IsAccessible As Boolean
509         '         ' Summary:
510         '     Gets a value indicating whether the control has been disposed of.
511         '         ' Returns:
512         '     true if the control has been disposed of; otherwise, false.
513         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
514         Public ReadOnly Property IsDisposed As Boolean
515         '         ' Summary:
516         '     Gets a value indicating whether the control has a handle associated with it.
517         '         ' Returns:
518         '     true if a handle has been assigned to the control; otherwise, false.
519         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
520         Public ReadOnly Property IsHandleCreated As Boolean
521         '         ' Summary:
522         '     Gets a value indicating whether the control is mirrored.
523         '         ' Returns:
524         '     true if the control is mirrored; otherwise, false.
525         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
526         Public ReadOnly Property IsMirrored As Boolean
527
528         '         ' Summary:
529         '     Gets or sets the distance, in pixels, between the left edge of the control and
530         '     the left edge of its container's client area.
531         '         ' Returns:
532         '     An System.Int32 representing the distance, in pixels, between the left edge of
533         '     the control and the left edge of its container's client area.
534         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Always)>
535         Public Property Left As Integer
536         '         ' Summary:
537         '     Gets or sets the coordinates of the upper-left corner of the control relative
538         '     to the upper-left corner of its container.
539         '         ' Returns:
540         '     The System.Drawing.Point that represents the upper-left corner of the control
541         '     relative to the upper-left corner of its container.
542         <Localizable(True)>
543         Public Property Location As Point
544         '         ' Summary:
545         '     Gets or sets the space between controls.
546         '         ' Returns:
547         '     A System.Windows.Forms.Padding representing the space between controls.
548         <Localizable(True)>
549         Public Property Margin As Padding
550         '         ' Summary:
551         '     Gets or sets the size that is the upper limit that System.Windows.Forms.Control.GetPreferredSize(System.Drawing.Size)
552         '     can specify.
553         '         ' Returns:
554         '     An ordered pair of type System.Drawing.Size representing the width and height
555         '     of a rectangle.
556         <AmbientValue(GetType(Size), "0, 0")> <Localizable(True)>
557         Public Overridable Property MaximumSize As Size
558         '         ' Summary:
559         '     Gets or sets the size that is the lower limit that System.Windows.Forms.Control.GetPreferredSize(System.Drawing.Size)
560         '     can specify.
561         '         ' Returns:
562         '     An ordered pair of type System.Drawing.Size representing the width and height
563         '     of a rectangle.
564         <Localizable(True)>
565         Public Overridable Property MinimumSize As Size
566         '         ' Summary:
567         '     Gets or sets the name of the control.
568         '         ' Returns:
569         '     The name of the control. The default is an empty string ("").
570         <Browsable(False)>
571         Public Property Name As String
572         '         ' Summary:
573         '     Gets or sets padding within the control.
574         '         ' Returns:
575         '     A System.Windows.Forms.Padding representing the control's internal spacing characteristics.
576         <Localizable(True)>
577         Public Property Padding As Padding
578         '         ' Summary:
579         '     Gets or sets the parent container of the control.
580         '         ' Returns:
581         '     A System.Windows.Forms.Control that represents the parent or container control
582         '     of the control.
583         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)>
584         Public Property Parent As Control
585         '         ' Summary:
586         '     Gets the size of a rectangular area into which the control can fit.
587         '         ' Returns:
588         '     A System.Drawing.Size containing the height and width, in pixels.
589         <Browsable(False)>
590         Public ReadOnly Property PreferredSize As Size
591         '         ' Summary:
592         '     Gets the product name of the assembly containing the control.
593         '         ' Returns:
594         '     The product name of the assembly containing the control.
595         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
596         Public ReadOnly Property ProductName As String
597         '         ' Summary:
598         '     Gets the version of the assembly containing the control.
599         '         ' Returns:
600         '     The file version of the assembly containing the control.
601         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
602         Public ReadOnly Property ProductVersion As String
603         '         ' Summary:
604         '     Gets a value indicating whether the control is currently re-creating its handle.
605         '         ' Returns:
606         '     true if the control is currently re-creating its handle; otherwise, false.
607         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
608         Public ReadOnly Property RecreatingHandle As Boolean
609         '         ' Summary:
610         '     Gets or sets the window region associated with the control.
611         '         ' Returns:
612         '     The window System.Drawing.Region associated with the control.
613         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
614         Public Property Region As Region
615         '         ' Summary:
616         '     Gets the distance, in pixels, between the right edge of the control and the left
617         '     edge of its container's client area.
618         '         ' Returns:
619         '     An System.Int32 representing the distance, in pixels, between the right edge
620         '     of the control and the left edge of its container's client area.
621         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
622         Public ReadOnly Property Right As Integer
623         '         ' Summary:
624         '     Gets or sets a value indicating whether control's elements are aligned to support
625         '     locales using right-to-left fonts.
626         '         ' Returns:
627         '     One of the System.Windows.Forms.RightToLeft values. The default is System.Windows.Forms.RightToLeft.Inherit.
628         '         ' Exceptions:
629         '   T:System.ComponentModel.InvalidEnumArgumentException:
630         '     The assigned value is not one of the System.Windows.Forms.RightToLeft values.
631         <AmbientValue(RightToLeft.Inherit)> <Localizable(True)>
632         Public Overridable Property RightToLeft As RightToLeft
633
634         '         ' Summary:
635         '     Gets or sets the height and width of the control.
636         '         ' Returns:
637         '     The System.Drawing.Size that represents the height and width of the control in
638         '     pixels.
639         <Localizable(True)>
640         Public Property Size As Size
641         '         ' Summary:
642         '     Gets or sets the tab order of the control within its container.
643         '         ' Returns:
644         '     The index value of the control within the set of controls within its container.
645         '     The controls in the container are included in the tab order.
646         <Localizable(True)> <MergableProperty(False)>
647         Public Property TabIndex As Integer
648         '         ' Summary:
649         '     Gets or sets a value indicating whether the user can give the focus to this control
650         '     using the TAB key.
651         '         ' Returns:
652         '     true if the user can give the focus to the control using the TAB key; otherwise,
653         '     false. The default is true.NoteThis property will always return true for an instance
654         '     of the System.Windows.Forms.Form class.
655         <DefaultValue(True)> <DispId(-516)>
656         Public Property TabStop As Boolean
657         '         ' Summary:
658         '     Gets or sets the object that contains data about the control.
659         '         ' Returns:
660         '     An System.Object that contains data about the control. The default is null.
661         <Bindable(True)> <Localizable(False)> <TypeConverter(GetType(StringConverter))>
662         Public Property Tag As Object
663         '         ' Summary:
664         '     Gets or sets the text associated with this control.
665         '         ' Returns:
666         '     The text associated with this control.
667         <Bindable(True)> <DispId(-517)> <Localizable(True)>
668         Public Overridable Property Text As String
669         '         ' Summary:
670         '     Gets or sets the distance, in pixels, between the top edge of the control and
671         '     the top edge of its container's client area.
672         '         ' Returns:
673         '     An System.Int32 representing the distance, in pixels, between the bottom edge
674         '     of the control and the top edge of its container's client area.
675         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Always)>
676         Public Property ToAs Integer
677
678         '         ' Summary:
679         '     Gets or sets a value indicating whether to use the wait cursor for the current
680         '     control and all child controls.
681         '         ' Returns:
682         '     true to use the wait cursor for the current control and all child controls; otherwise,
683         '     false. The default is false.
684         <Browsable(True)> <DefaultValue(False)> <EditorBrowsable(EditorBrowsableState.Always)>
685         Public Property UseWaitCursor As Boolean
686         '         ' Summary:
687         '     Gets or sets a value indicating whether the control and all its child controls
688         '     are displayed.
689         '         ' Returns:
690         '     true if the control and all its child controls are displayed; otherwise, false.
691         '     The default is true.
692         <Localizable(True)>
693         Public Property Visible As Boolean
694         '         ' Summary:
695         '     Gets or sets the width of the control.
696         '         ' Returns:
697         '     The width of the control in pixels.
698         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Always)>
699         Public Property Width As Integer
700         '         ' Summary:
701         '     This property is not relevant for this class.
702         '         ' Returns:
703         '     The NativeWindow contained within the control.
704         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Never)>
705         Public Property WindowTarget As IWindowTarget
706         '         ' Summary:
707         '     Gets a value indicating whether the System.Windows.Forms.Control.ImeMode property
708         '     can be set to an active value, to enable IME support.
709         '         ' Returns:
710         '     true in all cases.
711         Protected Overridable ReadOnly Property CanEnableIme As Boolean
712         '         ' Summary:
713         '     Gets the required creation parameters when the control handle is created.
714         '         ' Returns:
715         '     A System.Windows.Forms.CreateParams that contains the required creation parameters
716         '     when the handle to the control is created.
717         Protected Overridable ReadOnly Property CreateParams As CreateParams
718         '         ' Summary:
719         '     Gets or sets the default cursor for the control.
720         '         ' Returns:
721         '     An object of type System.Windows.Forms.Cursor representing the current default
722         '     cursor.
723         Protected Overridable ReadOnly Property DefaultCursor As Cursor
724         '         ' Summary:
725         '     Gets the default Input Method Editor (IME) mode supported by the control.
726         '         ' Returns:
727         '     One of the System.Windows.Forms.ImeMode values.
728         Protected Overridable ReadOnly Property DefaultImeMode As ImeMode
729         '         ' Summary:
730         '     Gets the space, in pixels, that is specified by default between controls.
731         '         ' Returns:
732         '     A System.Windows.Forms.Padding that represents the default space between controls.
733         Protected Overridable ReadOnly Property DefaultMargin As Padding
734         '         ' Summary:
735         '     Gets the length and height, in pixels, that is specified as the default maximum
736         '     size of a control.
737         '         ' Returns:
738         '     A System.Drawing.Point.#ctor(System.Drawing.Size) representing the size of the
739         '     control.
740         Protected Overridable ReadOnly Property DefaultMaximumSize As Size
741         '         ' Summary:
742         '     Gets the length and height, in pixels, that is specified as the default minimum
743         '     size of a control.
744         '         ' Returns:
745         '     A System.Drawing.Size representing the size of the control.
746         Protected Overridable ReadOnly Property DefaultMinimumSize As Size
747         '         ' Summary:
748         '     Gets the internal spacing, in pixels, of the contents of a control.
749         '         ' Returns:
750         '     A System.Windows.Forms.Padding that represents the internal spacing of the contents
751         '     of a control.
752         Protected Overridable ReadOnly Property DefaultPadding As Padding
753         '         ' Summary:
754         '     Gets the default size of the control.
755         '         ' Returns:
756         '     The default System.Drawing.Size of the control.
757         Protected Overridable ReadOnly Property DefaultSize As Size
758         '         ' Summary:
759         '     Gets or sets a value indicating whether this control should redraw its surface
760         '     using a secondary buffer to reduce or prevent flicker.
761         '         ' Returns:
762         '     true if the surface of the control should be drawn using double buffering; otherwise,
763         '     false.
764         Protected Overridable Property DoubleBuffered As Boolean
765         '         ' Summary:
766         '     Gets or sets the height of the font of the control.
767         '         ' Returns:
768         '     The height of the System.Drawing.Font of the control in pixels.
769         Protected Property FontHeight As Integer
770         '         ' Summary:
771         '     Gets or sets the IME mode of a control.
772         '         ' Returns:
773         '     The IME mode of the control.
774         Protected Overridable Property ImeModeBase As ImeMode
775         '         ' Summary:
776         '     Gets or sets a value indicating whether the control redraws itself when resized.
777         '         ' Returns:
778         '     true if the control redraws itself when resized; otherwise, false.
779         Protected Property ResizeRedraw As Boolean
780         '         ' Summary:
781         '     Gets a value that determines the scaling of child controls.
782         '         ' Returns:
783         '     true if child controls will be scaled when the System.Windows.Forms.Control.Scale(System.Single)
784         '     method on this control is called; otherwise, false. The default is true.
785         <EditorBrowsable(EditorBrowsableState.Advanced)>
786         Protected Overridable ReadOnly Property ScaleChildren As Boolean
787         '         ' Summary:
788         '     This property is now obsolete.
789         '         ' Returns:
790         '     true if the control is rendered from right to left; otherwise, false. The default
791         '     is false.
792         <Obsolete("This property has been deprecated. Please use RightToLeft instead. http://go.microsoft.com/fwlink/?linkid=14202")>
793         Protected Friend ReadOnly Property RenderRightToLeft As Boolean
794         '         ' Summary:
795         '     Gets a value indicating whether the control should display focus rectangles.
796         '         ' Returns:
797         '     true if the control should display focus rectangles; otherwise, false.
798         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
799         Protected Friend Overridable ReadOnly Property ShowFocusCues As Boolean
800         '         ' Summary:
801         '     Gets a value indicating whether the user interface is in the appropriate state
802         '     to show or hide keyboard accelerators.
803         '         ' Returns:
804         '     true if the keyboard accelerators are visible; otherwise, false.
805         <Browsable(False)> <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> <EditorBrowsable(EditorBrowsableState.Advanced)>
806         Protected Friend Overridable ReadOnly Property ShowKeyboardCues As Boolean
807     End Class
808 End Namespace