6.TextBox

1.TextBox

  1 namespace System.Windows.Forms
  2 {
  3     //
  4     // 摘要:
  5     //     表示 Windows 文本框控件。
  6     [ClassInterface(ClassInterfaceType.AutoDispatch)]
  7     [ComVisible(true)]
  8     [Designer("System.Windows.Forms.Design.TextBoxDesigner, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9     [SRDescriptionAttribute("DescriptionTextBox")]
 10     public class TextBox : TextBoxBase
 11     {
 12         //
 13         // 摘要:
 14         //     初始化 System.Windows.Forms.TextBox 类的新实例。
 15         public TextBox();
 16 
 17         //
 18         // 摘要:
 19         //     获取或设置一个值,该值指示在多行 System.Windows.Forms.TextBox 控件中按 Enter 键时,是在控件中创建一行新文本还是激活窗体的默认按钮。
 20         //
 21         // 返回结果:
 22         //     如果按 Enter 键时在多行版本的控件中创建一行新文本,则为 true;如果按 Enter 键时激活窗体的默认按钮,则为 false。 默认值为 false。
 23         [DefaultValue(false)]
 24         [SRCategoryAttribute("CatBehavior")]
 25         [SRDescriptionAttribute("TextBoxAcceptsReturnDescr")]
 26         public bool AcceptsReturn { get; set; }
 27         //
 28         // 摘要:
 29         //     获取或设置当 System.Windows.Forms.TextBox.AutoCompleteSource 属性设置为 CustomSource 时要使用的自定义
 30         //     T:System.Collections.Specialized.StringCollection。
 31         //
 32         // 返回结果:
 33         //     要与 System.Windows.Forms.TextBox.AutoCompleteSource 一起使用的 System.Collections.Specialized.StringCollection。
 34         [Browsable(true)]
 35         [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
 36         [Editor("System.Windows.Forms.Design.ListControlStringCollectionEditor, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(UITypeEditor))]
 37         [EditorBrowsable(EditorBrowsableState.Always)]
 38         [Localizable(true)]
 39         [SRDescriptionAttribute("TextBoxAutoCompleteCustomSourceDescr")]
 40         public AutoCompleteStringCollection AutoCompleteCustomSource { get; set; }
 41         //
 42         // 摘要:
 43         //     获取或设置一个选项,该选项控制自动完成应用于 System.Windows.Forms.TextBox 的方式。
 44         //
 45         // 返回结果:
 46         //     System.Windows.Forms.AutoCompleteMode 值之一。 以下为这些值。 System.Windows.Forms.AutoCompleteMode.Append将最可能的候选字符串的其余部分追加到现有的字符,并突出显示追加的字符。
 47         //     System.Windows.Forms.AutoCompleteMode.Suggest显示与编辑控件关联的辅助下拉列表。 此下拉列表填充了一个或多个建议完成字符串。
 48         //     System.Windows.Forms.AutoCompleteMode.SuggestAppend追加 Suggest 和 Append 选项。 System.Windows.Forms.AutoCompleteMode.None禁用自动完成
 49         //     这是默认值。
 50         //
 51         // 异常:
 52         //   T:System.ComponentModel.InvalidEnumArgumentException:
 53         //     指定的值不是 System.Windows.Forms.AutoCompleteMode 值之一。
 54         [Browsable(true)]
 55         [DefaultValue(AutoCompleteMode.None)]
 56         [EditorBrowsable(EditorBrowsableState.Always)]
 57         [SRDescriptionAttribute("TextBoxAutoCompleteModeDescr")]
 58         public AutoCompleteMode AutoCompleteMode { get; set; }
 59         //
 60         // 摘要:
 61         //     获取或设置一个值,该值指定用于自动完成的完整字符串的源。
 62         //
 63         // 返回结果:
 64         //     System.Windows.Forms.AutoCompleteSource 值之一。 这些选项为 AllSystemSources、AllUrl、FileSystem、HistoryList、RecentlyUsedList、CustomSource
 65         //     和 None。 默认值为 None。
 66         //
 67         // 异常:
 68         //   T:System.ComponentModel.InvalidEnumArgumentException:
 69         //     指定的值不是 System.Windows.Forms.AutoCompleteSource 值之一。
 70         [Browsable(true)]
 71         [DefaultValue(AutoCompleteSource.None)]
 72         [EditorBrowsable(EditorBrowsableState.Always)]
 73         [SRDescriptionAttribute("TextBoxAutoCompleteSourceDescr")]
 74         [TypeConverter(typeof(TextBoxAutoCompleteSourceConverter))]
 75         public AutoCompleteSource AutoCompleteSource { get; set; }
 76         //
 77         // 摘要:
 78         //     获取或设置 System.Windows.Forms.TextBox 控件是否在字符键入时修改其大小写格式。
 79         //
 80         // 返回结果:
 81         //     System.Windows.Forms.CharacterCasing 枚举值中的一个值,它指定 System.Windows.Forms.TextBox
 82         //     控件是否修改字符的大小写格式。 默认值为 CharacterCasing.Normal。
 83         //
 84         // 异常:
 85         //   T:System.ComponentModel.InvalidEnumArgumentException:
 86         //     分配给该属性的值不在该枚举的有效值范围内。
 87         [DefaultValue(CharacterCasing.Normal)]
 88         [SRCategoryAttribute("CatBehavior")]
 89         [SRDescriptionAttribute("TextBoxCharacterCasingDescr")]
 90         public CharacterCasing CharacterCasing { get; set; }
 91         //
 92         // 摘要:
 93         //     获取或设置一个值,该值指示此控件是否为多行 System.Windows.Forms.TextBox 控件。
 94         //
 95         // 返回结果:
 96         //     如果该控件是多行 System.Windows.Forms.TextBox 控件,则为 true;否则为 false。 默认值为 false。
 97         public override bool Multiline { get; set; }
 98         //
 99         // 摘要:
100         //     获取或设置字符,该字符用于屏蔽单行 System.Windows.Forms.TextBox 控件中的密码字符。
101         //
102         // 返回结果:
103         //     用于屏蔽在单行 System.Windows.Forms.TextBox 控件中输入的字符的字符。 如果不想让控件在字符键入时将它们屏蔽,请将此属性值设置为
104         //     0(字符值)。 默认值等于 0(字符值)。
105         [DefaultValue('\0')]
106         [Localizable(true)]
107         [RefreshProperties(RefreshProperties.Repaint)]
108         [SRCategoryAttribute("CatBehavior")]
109         [SRDescriptionAttribute("TextBoxPasswordCharDescr")]
110         public char PasswordChar { get; set; }
111         //
112         // 摘要:
113         //     获取或设置哪些滚动条应出现在多行 System.Windows.Forms.TextBox 控件中。
114         //
115         // 返回结果:
116         //     System.Windows.Forms.ScrollBars 枚举值之一,它指示多行 System.Windows.Forms.TextBox 控件显示时是不带滚动条、带有水平滚动条、带有垂直滚动条还是同时带有这两种滚动条。
117         //     默认值为 ScrollBars.None。
118         //
119         // 异常:
120         //   T:System.ComponentModel.InvalidEnumArgumentException:
121         //     分配给该属性的值不在该枚举的有效值范围内。
122         [DefaultValue(ScrollBars.None)]
123         [Localizable(true)]
124         [SRCategoryAttribute("CatAppearance")]
125         [SRDescriptionAttribute("TextBoxScrollBarsDescr")]
126         public ScrollBars ScrollBars { get; set; }
127         //
128         // 摘要:
129         //     获取或设置 System.Windows.Forms.TextBox 中的当前文本。
130         //
131         // 返回结果:
132         //     The text displayed in the control.
133         public override string Text { get; set; }
134         //
135         // 摘要:
136         //     获取或设置 System.Windows.Forms.TextBox 控件中文本的对齐方式。
137         //
138         // 返回结果:
139         //     System.Windows.Forms.HorizontalAlignment 枚举值之一,指定控件中文本的对齐方式。 默认值为 HorizontalAlignment.Left。
140         //
141         // 异常:
142         //   T:System.ComponentModel.InvalidEnumArgumentException:
143         //     分配给该属性的值不在该枚举的有效值范围内。
144         [DefaultValue(HorizontalAlignment.Left)]
145         [Localizable(true)]
146         [SRCategoryAttribute("CatAppearance")]
147         [SRDescriptionAttribute("TextBoxTextAlignDescr")]
148         public HorizontalAlignment TextAlign { get; set; }
149         //
150         // 摘要:
151         //     获取或设置一个值,该值指示 System.Windows.Forms.TextBox 控件中的文本是否作为默认密码字符显示。
152         //
153         // 返回结果:
154         //     如果 System.Windows.Forms.TextBox 控件中的文本应该以默认的密码字符显示,则为 true;否则为 false。
155         [DefaultValue(false)]
156         [RefreshProperties(RefreshProperties.Repaint)]
157         [SRCategoryAttribute("CatBehavior")]
158         [SRDescriptionAttribute("TextBoxUseSystemPasswordCharDescr")]
159         public bool UseSystemPasswordChar { get; set; }
160         //
161         // 摘要:
162         //     获取创建控件句柄时所需要的创建参数。
163         //
164         // 返回结果:
165         //     System.Windows.Forms.CreateParams,包含创建控件的句柄时所需的创建参数。
166         protected override CreateParams CreateParams { get; }
167 
168         //
169         // 摘要:
170         //     在 System.Windows.Forms.TextBox.TextAlign 属性的值更改后发生。
171         [SRCategoryAttribute("CatPropertyChanged")]
172         [SRDescriptionAttribute("RadioButtonOnTextAlignChangedDescr")]
173         public event EventHandler TextAlignChanged;
174 
175         //
176         // 摘要:
177         //     将选定文本设置为指定文本,但不清除撤消缓冲区。
178         //
179         // 参数:
180         //   text:
181         //     要替换的文本。
182         public void Paste(string text);
183         //
184         // 摘要:
185         //     释放由 System.Windows.Forms.TextBox 占用的非托管资源,还可以另外再释放托管资源。
186         //
187         // 参数:
188         //   disposing:
189         //     true 表示释放托管资源和非托管资源;false 表示仅释放非托管资源。
190         protected override void Dispose(bool disposing);
191         //
192         // 摘要:
193         //     确定指定的键是输入键还是需要预处理的特殊键。
194         //
195         // 参数:
196         //   keyData:
197         //     键的一个值。
198         //
199         // 返回结果:
200         //     如果指定的键是输入键,则为 true;否则为 false。
201         protected override bool IsInputKey(Keys keyData);
202         //
203         // 摘要:
204         //     引发 System.Windows.Forms.Control.BackColorChanged 事件。
205         //
206         // 参数:
207         //   e:
208         //     一个 System.EventArgs,其中包含事件数据。
209         protected override void OnBackColorChanged(EventArgs e);
210         //
211         // 摘要:
212         //     引发 System.Windows.Forms.Control.FontChanged 事件。
213         //
214         // 参数:
215         //   e:
216         //     一个 System.EventArgs,其中包含事件数据。
217         protected override void OnFontChanged(EventArgs e);
218         //
219         // 摘要:
220         //     引发 System.Windows.Forms.Control.GotFocus 事件。
221         //
222         // 参数:
223         //   e:
224         //     一个 System.EventArgs,其中包含事件数据。
225         protected override void OnGotFocus(EventArgs e);
226         //
227         // 摘要:
228         //     引发 System.Windows.Forms.Control.HandleCreated 事件。
229         //
230         // 参数:
231         //   e:
232         //     事件数据。
233         protected override void OnHandleCreated(EventArgs e);
234         //
235         // 摘要:
236         //     引发 System.Windows.Forms.Control.OnHandleDestroyed(System.EventArgs) 事件。
237         //
238         // 参数:
239         //   e:
240         //     一个 System.EventArgs,其中包含事件数据。
241         protected override void OnHandleDestroyed(EventArgs e);
242         //
243         // 摘要:
244         //     引发 System.Windows.Forms.TextBox.TextAlignChanged 事件。
245         //
246         // 参数:
247         //   e:
248         //     一个 System.EventArgs,其中包含事件数据。
249         protected virtual void OnTextAlignChanged(EventArgs e);
250         //
251         // 摘要:
252         //     处理 Windows 消息。
253         //
254         // 参数:
255         //   m:
256         //     一个 Windows 消息对象。
257         protected override void WndProc(ref Message m);
258     }
259 }
View Code

2.TextBoxBase

#region 程序集 System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Windows.Forms.dll
#endregion

using System.ComponentModel;
using System.Drawing;
using System.Drawing.Design;
using System.Runtime.InteropServices;

namespace System.Windows.Forms
{
    //
    // 摘要:
    //     实现文本控件要求的基本功能。
    [ClassInterface(ClassInterfaceType.AutoDispatch)]
    [ComVisible(true)]
    [DefaultBindingProperty("Text")]
    [DefaultEvent("TextChanged")]
    [Designer("System.Windows.Forms.Design.TextBoxBaseDesigner, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
    public abstract class TextBoxBase : Control
    {
        //
        // 摘要:
        //     获取或设置一个值,该值指示在多行文本框控件中按 Tab 键时,是否在控件中键入一个 Tab 字符,而不是按选项卡的顺序将焦点移动到下一个控件。
        //
        // 返回结果:
        //     如果用户可以使用 Tab 键在多行文本框控件中输入 Tab 字符,则为 true;如果按 Tab 键移动焦点,则为 false。 默认值为 false。
        [DefaultValue(false)]
        [SRCategoryAttribute("CatBehavior")]
        [SRDescriptionAttribute("TextBoxAcceptsTabDescr")]
        public bool AcceptsTab { get; set; }
        //
        // 摘要:
        //     获取或设置一个值,该值指示当更改分配给控件的字体时,是否自动调整控件的高度。
        //
        // 返回结果:
        //     如果在更改字体时自动调整控件的高度,则为 true;否则为 false。 默认值为 true。
        [Browsable(false)]
        [DefaultValue(true)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        [Localizable(true)]
        [RefreshProperties(RefreshProperties.Repaint)]
        [SRCategoryAttribute("CatBehavior")]
        [SRDescriptionAttribute("TextBoxAutoSizeDescr")]
        public override bool AutoSize { get; set; }
        //
        // 摘要:
        //     获取或设置控件的背景色。
        //
        // 返回结果:
        //     表示控件背景色的 System.Drawing.Color。
        [DispId(-501)]
        [SRCategoryAttribute("CatAppearance")]
        [SRDescriptionAttribute("ControlBackColorDescr")]
        public override Color BackColor { get; set; }
        //
        // 摘要:
        //     此属性与此类无关。
        //
        // 返回结果:
        //     一个 System.Drawing.Image。
        [Browsable(false)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        public override Image BackgroundImage { get; set; }
        //
        // 摘要:
        //     此属性与此类无关。
        //
        // 返回结果:
        //     System.Windows.Forms.ImageLayout 值之一。
        [Browsable(false)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        public override ImageLayout BackgroundImageLayout { get; set; }
        //
        // 摘要:
        //     获取或设置文本框控件的边框类型。
        //
        // 返回结果:
        //     表示文本框控件边框类型的 System.Windows.Forms.BorderStyle。 默认值为 Fixed3D。
        //
        // 异常:
        //   T:System.ComponentModel.InvalidEnumArgumentException:
        //     分配给该属性的值不在该枚举的有效值范围内。
        [DefaultValue(BorderStyle.Fixed3D)]
        [DispId(-504)]
        [SRCategoryAttribute("CatAppearance")]
        [SRDescriptionAttribute("TextBoxBorderDescr")]
        public BorderStyle BorderStyle { get; set; }
        //
        // 摘要:
        //     获取一个值,该值指示用户在文本框控件中能否撤消前一操作。
        //
        // 返回结果:
        //     如果用户可以撤消在文本框控件中执行的前一操作,则为 true;否则为 false。
        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        [SRCategoryAttribute("CatBehavior")]
        [SRDescriptionAttribute("TextBoxCanUndoDescr")]
        public bool CanUndo { get; }
        //
        // 摘要:
        //     获取或设置控件的前景色。
        //
        // 返回结果:
        //     表示控件前景色的 System.Drawing.Color。
        [DispId(-513)]
        [SRCategoryAttribute("CatAppearance")]
        [SRDescriptionAttribute("ControlForeColorDescr")]
        public override Color ForeColor { get; set; }
        //
        // 摘要:
        //     获取或设置一个值,该值指示当文本框控件没有焦点时,该控件中选定的文本是否保持突出显示。
        //
        // 返回结果:
        //     如果当文本框控件没有焦点时,选定文本不突出显示,则为 true;如果当文本框控件没有焦点时,选定文本保持突出显示,则为 false。 默认值为 true。
        [DefaultValue(true)]
        [SRCategoryAttribute("CatBehavior")]
        [SRDescriptionAttribute("TextBoxHideSelectionDescr")]
        public bool HideSelection { get; set; }
        //
        // 摘要:
        //     获取或设置文本框控件中的文本行。
        //
        // 返回结果:
        //     包含文本框控件中的文本的字符串数组。
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        [Editor("System.Windows.Forms.Design.StringArrayEditor, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(UITypeEditor))]
        [Localizable(true)]
        [MergableProperty(false)]
        [SRCategoryAttribute("CatAppearance")]
        [SRDescriptionAttribute("TextBoxLinesDescr")]
        public string[] Lines { get; set; }
        //
        // 摘要:
        //     获取或设置用户可在文本框控件中键入或粘贴的最大字符数。
        //
        // 返回结果:
        //     可以在文本框控件中输入的字符数。 默认值为 32767。
        //
        // 异常:
        //   T:System.ArgumentOutOfRangeException:
        //     分配给属性的值小于零。
        [DefaultValue(32767)]
        [Localizable(true)]
        [SRCategoryAttribute("CatBehavior")]
        [SRDescriptionAttribute("TextBoxMaxLengthDescr")]
        public virtual int MaxLength { get; set; }
        //
        // 摘要:
        //     获取或设置一个值,该值指示自创建文本框控件或上次设置该控件的内容后,用户修改了该控件。
        //
        // 返回结果:
        //     如果控件的内容被修改了,则为 true,否则为 false。 默认值为 false。
        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        [SRCategoryAttribute("CatBehavior")]
        [SRDescriptionAttribute("TextBoxModifiedDescr")]
        public bool Modified { get; set; }
        //
        // 摘要:
        //     获取或设置一个值,该值指示它是否为多行文本框控件。
        //
        // 返回结果:
        //     如果该控件是多行文本框控件,则为 true;否则为 false。 默认值为 false。
        [DefaultValue(false)]
        [Localizable(true)]
        [RefreshProperties(RefreshProperties.All)]
        [SRCategoryAttribute("CatBehavior")]
        [SRDescriptionAttribute("TextBoxMultilineDescr")]
        public virtual bool Multiline { get; set; }
        //
        // 摘要:
        //     此属性与此类无关。
        //
        // 返回结果:
        //     一个 System.Windows.Forms.Padding 值。
        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        public Padding Padding { get; set; }
        //
        // 摘要:
        //     获取文本框的首选高度。
        //
        // 返回结果:
        //     文本框的首选高度。
        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        [EditorBrowsable(EditorBrowsableState.Advanced)]
        [SRCategoryAttribute("CatLayout")]
        [SRDescriptionAttribute("TextBoxPreferredHeightDescr")]
        public int PreferredHeight { get; }
        //
        // 摘要:
        //     获取或设置一个值,该值指示文本框中的文本是否为只读。
        //
        // 返回结果:
        //     如果文本框是只读的,则为 true,否则为 false。 默认值为 false。
        [DefaultValue(false)]
        [RefreshProperties(RefreshProperties.Repaint)]
        [SRCategoryAttribute("CatBehavior")]
        [SRDescriptionAttribute("TextBoxReadOnlyDescr")]
        public bool ReadOnly { get; set; }
        //
        // 摘要:
        //     获取或设置一个值,该值指示控件中当前选定的文本。
        //
        // 返回结果:
        //     表示文本框中当前选定文本的字符串。
        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        [SRCategoryAttribute("CatAppearance")]
        [SRDescriptionAttribute("TextBoxSelectedTextDescr")]
        public virtual string SelectedText { get; set; }
        //
        // 摘要:
        //     获取或设置文本框中选定的字符数。
        //
        // 返回结果:
        //     文本框中选定的字符数。
        //
        // 异常:
        //   T:System.ArgumentOutOfRangeException:
        //     赋给的值小于零。
        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        [SRCategoryAttribute("CatAppearance")]
        [SRDescriptionAttribute("TextBoxSelectionLengthDescr")]
        public virtual int SelectionLength { get; set; }
        //
        // 摘要:
        //     获取或设置文本框中选定的文本起始点。
        //
        // 返回结果:
        //     文本框中选定的文本的起始位置。
        //
        // 异常:
        //   T:System.ArgumentOutOfRangeException:
        //     赋给的值小于零。
        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        [SRCategoryAttribute("CatAppearance")]
        [SRDescriptionAttribute("TextBoxSelectionStartDescr")]
        public int SelectionStart { get; set; }
        //
        // 摘要:
        //     获取或设置一个值,该值指示是否启用已定义的快捷方式。
        //
        // 返回结果:
        //     如果启用快捷方式,则为 true;否则为 false。
        [DefaultValue(true)]
        [SRCategoryAttribute("CatBehavior")]
        [SRDescriptionAttribute("TextBoxShortcutsEnabledDescr")]
        public virtual bool ShortcutsEnabled { get; set; }
        //
        // 摘要:
        //     获取或设置文本框中的当前文本。
        //
        // 返回结果:
        //     在控件中显示的文本。
        [Editor("System.ComponentModel.Design.MultilineStringEditor, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(UITypeEditor))]
        [Localizable(true)]
        public override string Text { get; set; }
        //
        // 摘要:
        //     获取控件中文本的长度。
        //
        // 返回结果:
        //     控件的文本中包含的字符数。
        [Browsable(false)]
        public virtual int TextLength { get; }
        //
        // 摘要:
        //     指示多行文本框控件在必要时是否自动换行到下一行的开始。
        //
        // 返回结果:
        //     如果多行文本框控件可换行,则为 true;如果当用户键入的内容超过了控件的右边缘时,文本框控件自动水平滚动,则为 false。 默认值为 true。
        [DefaultValue(true)]
        [Localizable(true)]
        [SRCategoryAttribute("CatBehavior")]
        [SRDescriptionAttribute("TextBoxWordWrapDescr")]
        public bool WordWrap { get; set; }
        //
        // 摘要:
        //     获取一个用以指示是否可以将 System.Windows.Forms.Control.ImeMode 属性设置为活动值的值,以启用 IME 支持。
        //
        // 返回结果:
        //     如果 System.Windows.Forms.TextBoxBase.ReadOnly 属性为 true 或将此 System.Windows.Forms.TextBoxBase
        //     类设置为使用密码掩码字符,则为 false;否则为 true。
        protected override bool CanEnableIme { get; }
        //
        // 返回结果:
        //     一个 System.Windows.Forms.CreateParams,封装创建控件时所需的信息。
        protected override CreateParams CreateParams { get; }
        //
        // 摘要:
        //     获取或设置控件的默认光标。
        //
        // 返回结果:
        //     一个 System.Windows.Forms.Cursor 类型的对象,表示当前默认光标。
        protected override Cursor DefaultCursor { get; }
        //
        // 返回结果:
        //     一个 System.Drawing.Size 值。
        protected override Size DefaultSize { get; }
        //
        // 摘要:
        //     获取或设置一个值,该值指示是否在显示控件前在缓冲区中完成控件绘制。 此属性与此类无关。
        //
        // 返回结果:
        //     若要在控件上实现双缓冲,则为 true;否则,为 false。
        [EditorBrowsable(EditorBrowsableState.Never)]
        protected override bool DoubleBuffered { get; set; }
        //
        // 摘要:
        //     获取或设置控件的输入法编辑器 (IME) 模式。
        //
        // 返回结果:
        //     控件的 IME 模式。
        protected override ImeMode ImeModeBase { get; set; }

        //
        // 摘要:
        //     在 System.Windows.Forms.TextBoxBase.AcceptsTab 属性的值更改后发生。
        [SRCategoryAttribute("CatPropertyChanged")]
        [SRDescriptionAttribute("TextBoxBaseOnAcceptsTabChangedDescr")]
        public event EventHandler AcceptsTabChanged;
        //
        // 摘要:
        //     此事件与该类无关。
        [Browsable(false)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        public event EventHandler AutoSizeChanged;
        //
        // 摘要:
        //     当 System.Windows.Forms.TextBoxBase.BackgroundImage 属性的值更改时发生。 此事件与该类无关。
        [Browsable(false)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        public event EventHandler BackgroundImageChanged;
        //
        // 摘要:
        //     当 System.Windows.Forms.TextBoxBase.BackgroundImageLayout 属性的值更改时发生。 此事件与该类无关。
        [Browsable(false)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        public event EventHandler BackgroundImageLayoutChanged;
        //
        // 摘要:
        //     在 System.Windows.Forms.TextBoxBase.BorderStyle 属性的值更改后发生。
        [SRCategoryAttribute("CatPropertyChanged")]
        [SRDescriptionAttribute("TextBoxBaseOnBorderStyleChangedDescr")]
        public event EventHandler BorderStyleChanged;
        //
        // 摘要:
        //     在单击文本框时发生。
        [Browsable(true)]
        [EditorBrowsable(EditorBrowsableState.Always)]
        public event EventHandler Click;
        //
        // 摘要:
        //     在 System.Windows.Forms.TextBoxBase.HideSelection 属性的值更改后发生。
        [SRCategoryAttribute("CatPropertyChanged")]
        [SRDescriptionAttribute("TextBoxBaseOnHideSelectionChangedDescr")]
        public event EventHandler HideSelectionChanged;
        //
        // 摘要:
        //     在 System.Windows.Forms.TextBoxBase.Modified 属性的值更改后发生。
        [SRCategoryAttribute("CatPropertyChanged")]
        [SRDescriptionAttribute("TextBoxBaseOnModifiedChangedDescr")]
        public event EventHandler ModifiedChanged;
        //
        // 摘要:
        //     在鼠标单击该控件时发生。
        [Browsable(true)]
        [EditorBrowsable(EditorBrowsableState.Always)]
        public event MouseEventHandler MouseClick;
        //
        // 摘要:
        //     在 System.Windows.Forms.TextBoxBase.Multiline 属性的值更改后发生。
        [SRCategoryAttribute("CatPropertyChanged")]
        [SRDescriptionAttribute("TextBoxBaseOnMultilineChangedDescr")]
        public event EventHandler MultilineChanged;
        //
        // 摘要:
        //     此事件与该类无关。
        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        [SRCategoryAttribute("CatLayout")]
        [SRDescriptionAttribute("ControlOnPaddingChangedDescr")]
        public event EventHandler PaddingChanged;
        //
        // 摘要:
        //     在重绘控件时发生。 此事件与该类无关。
        [Browsable(false)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        public event PaintEventHandler Paint;
        //
        // 摘要:
        //     在 System.Windows.Forms.TextBoxBase.ReadOnly 属性的值更改后发生。
        [SRCategoryAttribute("CatPropertyChanged")]
        [SRDescriptionAttribute("TextBoxBaseOnReadOnlyChangedDescr")]
        public event EventHandler ReadOnlyChanged;

        //
        // 摘要:
        //     向文本框的当前文本追加文本。
        //
        // 参数:
        //   text:
        //     要向文本框的当前内容追加的文本。
        public void AppendText(string text);
        //
        // 摘要:
        //     从文本框控件中清除所有文本。
        public void Clear();
        //
        // 摘要:
        //     从该文本框的撤消缓冲区中清除关于最近操作的信息。
        public void ClearUndo();
        //
        // 摘要:
        //     将文本框中的当前选定内容复制到“剪贴板”。
        public void Copy();
        //
        // 摘要:
        //     将文本框中的当前选定内容移动到“剪贴板”中。
        public void Cut();
        //
        // 摘要:
        //     将 System.Windows.Forms.TextBoxBase.SelectionLength 属性的值指定为零,从而不会在控件中选择字符。
        public void DeselectAll();
        //
        // 摘要:
        //     检索控件内距离指定位置最近的字符。
        //
        // 参数:
        //   pt:
        //     查找距离最近的字符的位置。
        //
        // 返回结果:
        //     位于指定位置的字符。
        public virtual char GetCharFromPosition(Point pt);
        //
        // 摘要:
        //     检索距离指定位置最近的字符索引。
        //
        // 参数:
        //   pt:
        //     要搜索的位置。
        //
        // 返回结果:
        //     位于指定位置的从零开始的字符索引。
        public virtual int GetCharIndexFromPosition(Point pt);
        //
        // 摘要:
        //     检索给定行第一个字符的索引。
        //
        // 参数:
        //   lineNumber:
        //     要获取其第一个字符的索引的行。
        //
        // 返回结果:
        //     指定行中第一个字符的从零开始的索引。
        //
        // 异常:
        //   T:System.ArgumentOutOfRangeException:
        //     lineNumber 参数的值小于零。
        public int GetFirstCharIndexFromLine(int lineNumber);
        //
        // 摘要:
        //     检索当前行的第一个字符的索引。
        //
        // 返回结果:
        //     当前行中从零开始的字符索引。
        public int GetFirstCharIndexOfCurrentLine();
        //
        // 摘要:
        //     从控件文本内的指定字符位置检索行号。
        //
        // 参数:
        //   index:
        //     要搜索的字符索引位置。
        //
        // 返回结果:
        //     字符索引所在的从零开始的行号。
        public virtual int GetLineFromCharIndex(int index);
        //
        // 摘要:
        //     检索控件内指定字符索引处的位置。
        //
        // 参数:
        //   index:
        //     要检索其位置的字符索引。
        //
        // 返回结果:
        //     控件的矩形工作区内指定字符的位置。
        public virtual Point GetPositionFromCharIndex(int index);
        //
        // 摘要:
        //     用“剪贴板”的内容替换文本框中的当前选定内容。
        public void Paste();
        //
        // 摘要:
        //     将控件内容滚动到当前插入符号位置。
        public void ScrollToCaret();
        //
        // 摘要:
        //     选择文本框中的文本范围。
        //
        // 参数:
        //   start:
        //     文本框中当前选定文本的第一个字符的位置。
        //
        //   length:
        //     要选择的字符数。
        //
        // 异常:
        //   T:System.ArgumentOutOfRangeException:
        //     start 参数的值小于零。
        public void Select(int start, int length);
        //
        // 摘要:
        //     选定文本框中的所有文本。
        public void SelectAll();
        //
        // 摘要:
        //     返回表示 System.Windows.Forms.TextBoxBase 控件的字符串。
        //
        // 返回结果:
        //     表示当前 System.Windows.Forms.TextBoxBase 的字符串。 该字符串包括控件的类型和 System.Windows.Forms.TextBoxBase
        //     属性。
        public override string ToString();
        //
        // 摘要:
        //     撤消文本框中的上一个编辑操作。
        public void Undo();
        //
        protected override void CreateHandle();
        //
        // 摘要:
        //     确定指定的键是输入键还是需要预处理的特殊键。
        //
        // 参数:
        //   keyData:
        //     键值之一。
        //
        // 返回结果:
        //     如果指定的键是输入键,则为 true;否则为 false。
        protected override bool IsInputKey(Keys keyData);
        //
        // 摘要:
        //     引发 System.Windows.Forms.TextBoxBase.AcceptsTabChanged 事件。
        //
        // 参数:
        //   e:
        //     一个 System.EventArgs,其中包含事件数据。
        protected virtual void OnAcceptsTabChanged(EventArgs e);
        //
        // 摘要:
        //     引发 System.Windows.Forms.TextBoxBase.BorderStyleChanged 事件。
        //
        // 参数:
        //   e:
        //     一个 System.EventArgs,其中包含事件数据。
        protected virtual void OnBorderStyleChanged(EventArgs e);
        //
        // 参数:
        //   e:
        //     An System.EventArgs that contains the event data.
        protected override void OnFontChanged(EventArgs e);
        //
        // 参数:
        //   e:
        //     An System.EventArgs that contains the event data.
        protected override void OnHandleCreated(EventArgs e);
        //
        // 参数:
        //   e:
        //     An System.EventArgs that contains the event data.
        protected override void OnHandleDestroyed(EventArgs e);
        //
        // 摘要:
        //     引发 System.Windows.Forms.TextBoxBase.HideSelectionChanged 事件。
        //
        // 参数:
        //   e:
        //     一个 System.EventArgs,其中包含事件数据。
        protected virtual void OnHideSelectionChanged(EventArgs e);
        //
        // 摘要:
        //     引发 System.Windows.Forms.TextBoxBase.ModifiedChanged 事件。
        //
        // 参数:
        //   e:
        //     一个 System.EventArgs,其中包含事件数据。
        protected virtual void OnModifiedChanged(EventArgs e);
        //
        // 摘要:
        //     引发 System.Windows.Forms.Control.MouseUp 事件。
        //
        // 参数:
        //   mevent:
        //     事件数据。
        protected override void OnMouseUp(MouseEventArgs mevent);
        //
        // 摘要:
        //     引发 System.Windows.Forms.TextBoxBase.MultilineChanged 事件。
        //
        // 参数:
        //   e:
        //     一个 System.EventArgs,其中包含事件数据。
        protected virtual void OnMultilineChanged(EventArgs e);
        //
        // 摘要:
        //     此方法与此类无关。
        //
        // 参数:
        //   e:
        //     一个 System.EventArgs,其中包含事件数据。
        protected override void OnPaddingChanged(EventArgs e);
        //
        // 摘要:
        //     引发 System.Windows.Forms.TextBoxBase.ReadOnlyChanged 事件。
        //
        // 参数:
        //   e:
        //     一个 System.EventArgs,其中包含事件数据。
        protected virtual void OnReadOnlyChanged(EventArgs e);
        //
        // 参数:
        //   e:
        //     An System.EventArgs that contains the event data.
        protected override void OnTextChanged(EventArgs e);
        //
        // 摘要:
        //     处理命令键。
        //
        // 参数:
        //   msg:
        //     通过引用传递的 System.Windows.Forms.Message,它表示要处理的窗口消息。
        //
        //   keyData:
        //     System.Windows.Forms.Keys 值之一,它表示要处理的快捷键。
        //
        // 返回结果:
        //     如果命令键已由控件处理,则为 true;否则为 false。
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData);
        //
        // 参数:
        //   keyData:
        //     One of the System.Windows.Forms.Keys values that represents the key to process.
        //
        // 返回结果:
        //     如果键已由控件处理,则为 true;否则为 false。
        protected override bool ProcessDialogKey(Keys keyData);
        //
        // 摘要:
        //     设置 System.Windows.Forms.TextBoxBase 控件的指定边界。
        //
        // 参数:
        //   x:
        //     控件的新 System.Windows.Forms.Control.Left 属性值。
        //
        //   y:
        //     控件的新 System.Windows.Forms.Control.Top 属性值。
        //
        //   width:
        //     控件的新 System.Windows.Forms.Control.Width 属性值。
        //
        //   height:
        //     未使用。
        //
        //   specified:
        //     System.Windows.Forms.BoundsSpecified 值的按位组合。
        protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified);
        //
        // 参数:
        //   m:
        //     一个 Windows 消息对象。
        protected override void WndProc(ref Message m);
    }
}

 

3.control

   1 #region 程序集 System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
   2 // C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Windows.Forms.dll
   3 #endregion
   4 
   5 using System.Collections;
   6 using System.ComponentModel;
   7 using System.ComponentModel.Design.Serialization;
   8 using System.Drawing;
   9 using System.Reflection;
  10 using System.Runtime;
  11 using System.Runtime.InteropServices;
  12 using System.Windows.Forms.Layout;
  13 
  14 namespace System.Windows.Forms
  15 {
  16     //
  17     // 摘要:
  18     //     定义控件的基类,控件是带有可视化表示形式的组件。
  19     [ClassInterface(ClassInterfaceType.AutoDispatch)]
  20     [ComVisible(true)]
  21     [DefaultEvent("Click")]
  22     [DefaultProperty("Text")]
  23     [Designer("System.Windows.Forms.Design.ControlDesigner, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  24     [DesignerSerializer("System.Windows.Forms.Design.ControlCodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  25     [ToolboxItemFilter("System.Windows.Forms")]
  26     public class Control : Component, IDropTarget, ISynchronizeInvoke, IWin32Window, IArrangedElement, IBindableComponent, IComponent, IDisposable
  27     {
  28         //
  29         // 摘要:
  30         //     用默认设置初始化 System.Windows.Forms.Control 类的新实例。
  31         public Control();
  32         //
  33         // 摘要:
  34         //     用特定的文本初始化 System.Windows.Forms.Control 类的新实例。
  35         //
  36         // 参数:
  37         //   text:
  38         //     控件显示的文本。
  39         public Control(string text);
  40         //
  41         // 摘要:
  42         //     用特定文本将 System.Windows.Forms.Control 类的新实例初始化为子控件。
  43         //
  44         // 参数:
  45         //   parent:
  46         //     要成为该控件的父级的 System.Windows.Forms.Control。
  47         //
  48         //   text:
  49         //     控件显示的文本。
  50         public Control(Control parent, string text);
  51         //
  52         // 摘要:
  53         //     用特定的文本、大小和位置初始化 System.Windows.Forms.Control 类的新实例。
  54         //
  55         // 参数:
  56         //   text:
  57         //     控件显示的文本。
  58         //
  59         //   left:
  60         //     控件距其容器左边缘的 System.Drawing.Point.X 位置(以像素为单位)。 该值被分配给 System.Windows.Forms.Control.Left
  61         //     属性。
  62         //
  63         //   top:
  64         //     控件距其容器上边缘的 System.Drawing.Point.Y 位置(以像素为单位)。 该值被分配给 System.Windows.Forms.Control.Top
  65         //     属性。
  66         //
  67         //   width:
  68         //     控件的宽度(以像素为单位)。 该值被分配给 System.Windows.Forms.Control.Width 属性。
  69         //
  70         //   height:
  71         //     控件的高度(以像素为单位)。 该值被分配给 System.Windows.Forms.Control.Height 属性。
  72         public Control(string text, int left, int top, int width, int height);
  73         //
  74         // 摘要:
  75         //     用特定的文本、大小和位置将 System.Windows.Forms.Control 类的新实例初始化为子控件。
  76         //
  77         // 参数:
  78         //   parent:
  79         //     要成为该控件的父级的 System.Windows.Forms.Control。
  80         //
  81         //   text:
  82         //     控件显示的文本。
  83         //
  84         //   left:
  85         //     控件距其容器左边缘的 System.Drawing.Point.X 位置(以像素为单位)。 该值被分配给 System.Windows.Forms.Control.Left
  86         //     属性。
  87         //
  88         //   top:
  89         //     控件距其容器上边缘的 System.Drawing.Point.Y 位置(以像素为单位)。 该值被分配给 System.Windows.Forms.Control.Top
  90         //     属性。
  91         //
  92         //   width:
  93         //     控件的宽度(以像素为单位)。 该值被分配给 System.Windows.Forms.Control.Width 属性。
  94         //
  95         //   height:
  96         //     控件的高度(以像素为单位)。 该值被分配给 System.Windows.Forms.Control.Height 属性。
  97         public Control(Control parent, string text, int left, int top, int width, int height);
  98 
  99         //
 100         // 摘要:
 101         //     获取或设置一个值,该值指示是否捕获对错误线程的调用,这些调用在调试应用程序时访问控件的 System.Windows.Forms.Control.Handle
 102         //     属性。
 103         //
 104         // 返回结果:
 105         //     如果捕获了对错误线程的调用,则为 true;否则为 false。
 106         [Browsable(false)]
 107         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 108         [EditorBrowsable(EditorBrowsableState.Advanced)]
 109         [SRDescriptionAttribute("ControlCheckForIllegalCrossThreadCalls")]
 110         public static bool CheckForIllegalCrossThreadCalls { get; set; }
 111         //
 112         // 摘要:
 113         //     获取控件的默认背景色。
 114         //
 115         // 返回结果:
 116         //     控件的默认背景 System.Drawing.Color。 默认值为 System.Drawing.SystemColors.Control。
 117         public static Color DefaultBackColor { get; }
 118         //
 119         // 摘要:
 120         //     获取控件的默认字体。
 121         //
 122         // 返回结果:
 123         //     控件的默认 System.Drawing.Font。 根据用户的操作系统以及系统的本地区域性设置的不同,返回的值也将不同。
 124         //
 125         // 异常:
 126         //   T:System.ArgumentException:
 127         //     默认字体或地区可选字体未安装在客户计算机上。
 128         public static Font DefaultFont { get; }
 129         //
 130         // 摘要:
 131         //     获取控件的默认前景色。
 132         //
 133         // 返回结果:
 134         //     控件的默认前景 System.Drawing.Color。 默认值为 System.Drawing.SystemColors.ControlText。
 135         public static Color DefaultForeColor { get; }
 136         //
 137         // 摘要:
 138         //     获取一个值,该值指示哪一个修改键(Shift、Ctrl 和 Alt)处于按下的状态。
 139         //
 140         // 返回结果:
 141         //     System.Windows.Forms.Keys 值的按位组合。 默认值为 System.Windows.Forms.Keys.None。
 142         public static Keys ModifierKeys { get; }
 143         //
 144         // 摘要:
 145         //     获取一个值,该值指示哪一个鼠标按钮处于按下的状态。
 146         //
 147         // 返回结果:
 148         //     System.Windows.Forms.MouseButtons 枚举值的按位组合。 默认值为 System.Windows.Forms.MouseButtons.None。
 149         public static MouseButtons MouseButtons { get; }
 150         //
 151         // 摘要:
 152         //     获取鼠标光标的位置(以屏幕坐标表示)。
 153         //
 154         // 返回结果:
 155         //     一个 System.Drawing.Point,它包含鼠标光标相对于屏幕左上角的坐标。
 156         public static Point MousePosition { get; }
 157         //
 158         // 摘要:
 159         //     获取一个表示传播 IME 模式的对象。
 160         //
 161         // 返回结果:
 162         //     一个表示传播 IME 模式的对象。
 163         protected static ImeMode PropagatingImeMode { get; }
 164         //
 165         // 摘要:
 166         //     获取分配给该控件的 System.Windows.Forms.AccessibleObject。
 167         //
 168         // 返回结果:
 169         //     分配给该控件的 System.Windows.Forms.AccessibleObject。
 170         [Browsable(false)]
 171         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 172         [EditorBrowsable(EditorBrowsableState.Advanced)]
 173         [SRDescriptionAttribute("ControlAccessibilityObjectDescr")]
 174         public AccessibleObject AccessibilityObject { get; }
 175         //
 176         // 摘要:
 177         //     获取或设置控件的默认操作说明,供辅助功能客户端应用程序使用。
 178         //
 179         // 返回结果:
 180         //     控件的默认操作说明,供辅助功能客户端应用程序使用。
 181         [Browsable(false)]
 182         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 183         [EditorBrowsable(EditorBrowsableState.Advanced)]
 184         [SRCategoryAttribute("CatAccessibility")]
 185         [SRDescriptionAttribute("ControlAccessibleDefaultActionDescr")]
 186         public string AccessibleDefaultActionDescription { get; set; }
 187         //
 188         // 摘要:
 189         //     获取或设置辅助功能客户端应用程序使用的控件说明。
 190         //
 191         // 返回结果:
 192         //     辅助功能客户端应用程序使用的控件说明。 默认值为 null。
 193         [DefaultValue(null)]
 194         [Localizable(true)]
 195         [SRCategoryAttribute("CatAccessibility")]
 196         [SRDescriptionAttribute("ControlAccessibleDescriptionDescr")]
 197         public string AccessibleDescription { get; set; }
 198         //
 199         // 摘要:
 200         //     获取或设置辅助功能客户端应用程序所使用的控件名称。
 201         //
 202         // 返回结果:
 203         //     辅助功能客户端应用程序所使用的控件名称。 默认值为 null。
 204         [DefaultValue(null)]
 205         [Localizable(true)]
 206         [SRCategoryAttribute("CatAccessibility")]
 207         [SRDescriptionAttribute("ControlAccessibleNameDescr")]
 208         public string AccessibleName { get; set; }
 209         //
 210         // 摘要:
 211         //     获取或设置控件的辅助性角色
 212         //
 213         // 返回结果:
 214         //     System.Windows.Forms.AccessibleRole 值之一。 默认值为 Default。
 215         //
 216         // 异常:
 217         //   T:System.ComponentModel.InvalidEnumArgumentException:
 218         //     分配的值不是 System.Windows.Forms.AccessibleRole 值之一。
 219         [DefaultValue(AccessibleRole.Default)]
 220         [SRCategoryAttribute("CatAccessibility")]
 221         [SRDescriptionAttribute("ControlAccessibleRoleDescr")]
 222         public AccessibleRole AccessibleRole { get; set; }
 223         //
 224         // 摘要:
 225         //     获取或设置一个值,该值指示控件是否可以接受用户拖放到它上面的数据。
 226         //
 227         // 返回结果:
 228         //     如果控件允许拖放操作,则为 true;否则为 false。 默认值为 false。
 229         [DefaultValue(false)]
 230         [SRCategoryAttribute("CatBehavior")]
 231         [SRDescriptionAttribute("ControlAllowDropDescr")]
 232         public virtual bool AllowDrop { get; set; }
 233         //
 234         // 摘要:
 235         //     获取或设置控件绑定到的容器的边缘并确定控件如何随其父级一起调整大小。
 236         //
 237         // 返回结果:
 238         //     System.Windows.Forms.AnchorStyles 值的按位组合。 默认值是 Top 和 Left。
 239         [DefaultValue(AnchorStyles.Top | AnchorStyles.Left)]
 240         [Localizable(true)]
 241         [RefreshProperties(RefreshProperties.Repaint)]
 242         [SRCategoryAttribute("CatLayout")]
 243         [SRDescriptionAttribute("ControlAnchorDescr")]
 244         public virtual AnchorStyles Anchor { get; set; }
 245         //
 246         // 摘要:
 247         //     获取或设置一个值,该值指示在 System.Windows.Forms.ScrollableControl.ScrollControlIntoView(System.Windows.Forms.Control)
 248         //     中将控件滚动到何处。
 249         //
 250         // 返回结果:
 251         //     一个指定滚动位置的 System.Drawing.Point。 默认为控件的左上角。
 252         [Browsable(false)]
 253         [DefaultValue(typeof(Point), "0, 0")]
 254         [EditorBrowsable(EditorBrowsableState.Advanced)]
 255         public virtual Point AutoScrollOffset { get; set; }
 256         //
 257         // 摘要:
 258         //     此属性与此类无关。
 259         //
 260         // 返回结果:
 261         //     如果已启用,则为 true;否则为 false。
 262         [Browsable(false)]
 263         [DefaultValue(false)]
 264         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 265         [EditorBrowsable(EditorBrowsableState.Never)]
 266         [Localizable(true)]
 267         [RefreshProperties(RefreshProperties.All)]
 268         [SRCategoryAttribute("CatLayout")]
 269         [SRDescriptionAttribute("ControlAutoSizeDescr")]
 270         public virtual bool AutoSize { get; set; }
 271         //
 272         // 摘要:
 273         //     获取或设置控件的背景色。
 274         //
 275         // 返回结果:
 276         //     表示控件背景色的 System.Drawing.Color。 默认为 System.Windows.Forms.Control.DefaultBackColor
 277         //     属性的值。
 278         [DispId(-501)]
 279         [SRCategoryAttribute("CatAppearance")]
 280         [SRDescriptionAttribute("ControlBackColorDescr")]
 281         public virtual Color BackColor { get; set; }
 282         //
 283         // 摘要:
 284         //     获取或设置在控件中显示的背景图像。
 285         //
 286         // 返回结果:
 287         //     一个 System.Drawing.Image,它表示在控件的背景中显示的图像。
 288         [DefaultValue(null)]
 289         [Localizable(true)]
 290         [SRCategoryAttribute("CatAppearance")]
 291         [SRDescriptionAttribute("ControlBackgroundImageDescr")]
 292         public virtual Image BackgroundImage { get; set; }
 293         //
 294         // 摘要:
 295         //     获取或设置在 System.Windows.Forms.ImageLayout 枚举中定义的背景图像布局。
 296         //
 297         // 返回结果:
 298         //     System.Windows.Forms.ImageLayout 的值(System.Windows.Forms.ImageLayout.Center、System.Windows.Forms.ImageLayout.None、System.Windows.Forms.ImageLayout.Stretch、System.Windows.Forms.ImageLayout.Tile
 299         //     或 System.Windows.Forms.ImageLayout.Zoom)之一。 System.Windows.Forms.ImageLayout.Tile
 300         //     为默认值。
 301         //
 302         // 异常:
 303         //   T:System.ComponentModel.InvalidEnumArgumentException:
 304         //     指定的枚举值不存在。
 305         [DefaultValue(ImageLayout.Tile)]
 306         [Localizable(true)]
 307         [SRCategoryAttribute("CatAppearance")]
 308         [SRDescriptionAttribute("ControlBackgroundImageLayoutDescr")]
 309         public virtual ImageLayout BackgroundImageLayout { get; set; }
 310         //
 311         // 摘要:
 312         //     获取或设置控件的 System.Windows.Forms.BindingContext。
 313         //
 314         // 返回结果:
 315         //     控件的 System.Windows.Forms.BindingContext。
 316         [Browsable(false)]
 317         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 318         [EditorBrowsable(EditorBrowsableState.Advanced)]
 319         [SRDescriptionAttribute("ControlBindingContextDescr")]
 320         public virtual BindingContext BindingContext { get; set; }
 321         //
 322         // 摘要:
 323         //     获取控件下边缘与其容器的工作区上边缘之间的距离(以像素为单位)。
 324         //
 325         // 返回结果:
 326         //     System.Int32 表示控件下边缘与其容器的工作区上边缘之间的距离(以像素为单位)。
 327         [Browsable(false)]
 328         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 329         [EditorBrowsable(EditorBrowsableState.Advanced)]
 330         [SRCategoryAttribute("CatLayout")]
 331         [SRDescriptionAttribute("ControlBottomDescr")]
 332         public int Bottom { get; }
 333         //
 334         // 摘要:
 335         //     获取或设置控件(包括其非工作区元素)相对于其父控件的大小和位置(以像素为单位)。
 336         //
 337         // 返回结果:
 338         //     相对于父控件的 System.Drawing.Rectangle,表示控件(包括其非工作区元素)的大小和位置(以像素为单位)。
 339         [Browsable(false)]
 340         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 341         [EditorBrowsable(EditorBrowsableState.Advanced)]
 342         [SRCategoryAttribute("CatLayout")]
 343         [SRDescriptionAttribute("ControlBoundsDescr")]
 344         public Rectangle Bounds { get; set; }
 345         //
 346         // 摘要:
 347         //     获取一个值,该值指示控件是否可以接收焦点。
 348         //
 349         // 返回结果:
 350         //     如果控件可以接收焦点,则为 true;否则为 false。
 351         [Browsable(false)]
 352         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 353         [EditorBrowsable(EditorBrowsableState.Advanced)]
 354         [SRCategoryAttribute("CatFocus")]
 355         [SRDescriptionAttribute("ControlCanFocusDescr")]
 356         public bool CanFocus { get; }
 357         //
 358         // 摘要:
 359         //     获取一个值,该值指示是否可以选中控件。
 360         //
 361         // 返回结果:
 362         //     如果控件可以选中,则为 true;否则为 false。
 363         [Browsable(false)]
 364         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 365         [EditorBrowsable(EditorBrowsableState.Advanced)]
 366         [SRCategoryAttribute("CatFocus")]
 367         [SRDescriptionAttribute("ControlCanSelectDescr")]
 368         public bool CanSelect { get; }
 369         //
 370         // 摘要:
 371         //     获取或设置一个值,该值指示控件是否已捕获鼠标。
 372         //
 373         // 返回结果:
 374         //     如果控件已捕获鼠标,则为 true;否则为 false。
 375         [Browsable(false)]
 376         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 377         [EditorBrowsable(EditorBrowsableState.Advanced)]
 378         [SRCategoryAttribute("CatFocus")]
 379         [SRDescriptionAttribute("ControlCaptureDescr")]
 380         public bool Capture { get; set; }
 381         //
 382         // 摘要:
 383         //     获取或设置一个值,该值指示控件是否会引起在任何需要在接收焦点时执行验证的控件上执行验证。
 384         //
 385         // 返回结果:
 386         //     如果控件引起在任何需要在接收焦点时执行验证的控件上执行验证,则为 true;否则为 false。 默认值为 true。
 387         [DefaultValue(true)]
 388         [SRCategoryAttribute("CatFocus")]
 389         [SRDescriptionAttribute("ControlCausesValidationDescr")]
 390         public bool CausesValidation { get; set; }
 391         //
 392         // 摘要:
 393         //     获取表示控件的工作区的矩形。
 394         //
 395         // 返回结果:
 396         //     一个 System.Drawing.Rectangle,它表示控件的工作区。
 397         [Browsable(false)]
 398         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 399         [EditorBrowsable(EditorBrowsableState.Advanced)]
 400         [SRCategoryAttribute("CatLayout")]
 401         [SRDescriptionAttribute("ControlClientRectangleDescr")]
 402         public Rectangle ClientRectangle { get; }
 403         //
 404         // 摘要:
 405         //     获取或设置控件的工作区的高度和宽度。
 406         //
 407         // 返回结果:
 408         //     一个 System.Drawing.Size,表示控件的工作区的维数。
 409         [Browsable(false)]
 410         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 411         [EditorBrowsable(EditorBrowsableState.Advanced)]
 412         [SRCategoryAttribute("CatLayout")]
 413         [SRDescriptionAttribute("ControlClientSizeDescr")]
 414         public Size ClientSize { get; set; }
 415         //
 416         // 摘要:
 417         //     获取包含控件的应用程序的公司名称或创建者。
 418         //
 419         // 返回结果:
 420         //     包含控件的应用程序的公司名称或创建者。
 421         [Browsable(false)]
 422         [Description("ControlCompanyNameDescr")]
 423         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 424         [EditorBrowsable(EditorBrowsableState.Advanced)]
 425         public string CompanyName { get; }
 426         //
 427         // 摘要:
 428         //     获取一个值,该值指示控件或它的一个子控件当前是否有输入焦点。
 429         //
 430         // 返回结果:
 431         //     如果控件或它的一个子控件当前已经有输入焦点,则为 true;否则为 false
 432         [Browsable(false)]
 433         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 434         [EditorBrowsable(EditorBrowsableState.Advanced)]
 435         [SRDescriptionAttribute("ControlContainsFocusDescr")]
 436         public bool ContainsFocus { get; }
 437         //
 438         // 摘要:
 439         //     获取或设置与控件关联的快捷菜单。
 440         //
 441         // 返回结果:
 442         //     一个 System.Windows.Forms.ContextMenu,它表示与控件关联的快捷菜单。
 443         [Browsable(false)]
 444         [DefaultValue(null)]
 445         [SRCategoryAttribute("CatBehavior")]
 446         [SRDescriptionAttribute("ControlContextMenuDescr")]
 447         public virtual ContextMenu ContextMenu { get; set; }
 448         //
 449         // 摘要:
 450         //     获取或设置与此控件关联的 System.Windows.Forms.ContextMenuStrip。
 451         //
 452         // 返回结果:
 453         //     该控件的 System.Windows.Forms.ContextMenuStrip;如果没有 System.Windows.Forms.ContextMenuStrip,则为
 454         //     null。 默认值为 null。
 455         [DefaultValue(null)]
 456         [SRCategoryAttribute("CatBehavior")]
 457         [SRDescriptionAttribute("ControlContextMenuDescr")]
 458         public virtual ContextMenuStrip ContextMenuStrip { get; set; }
 459         //
 460         // 摘要:
 461         //     获取包含在控件内的控件的集合。
 462         //
 463         // 返回结果:
 464         //     一个 System.Windows.Forms.Control.ControlCollection,它表示控件内包含的控件的集合。
 465         [Browsable(false)]
 466         [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
 467         [SRDescriptionAttribute("ControlControlsDescr")]
 468         public ControlCollection Controls { get; }
 469         //
 470         // 摘要:
 471         //     获取一个值,该值指示控件是否已经创建。
 472         //
 473         // 返回结果:
 474         //     如果已创建控件,则为 true;否则为 false。
 475         [Browsable(false)]
 476         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 477         [EditorBrowsable(EditorBrowsableState.Advanced)]
 478         [SRDescriptionAttribute("ControlCreatedDescr")]
 479         public bool Created { get; }
 480         //
 481         // 摘要:
 482         //     获取或设置当鼠标指针位于控件上时显示的光标。
 483         //
 484         // 返回结果:
 485         //     一个 System.Windows.Forms.Cursor,表示当鼠标指针位于控件上时显示的光标。
 486         [AmbientValue(null)]
 487         [SRCategoryAttribute("CatAppearance")]
 488         [SRDescriptionAttribute("ControlCursorDescr")]
 489         public virtual Cursor Cursor { get; set; }
 490         //
 491         // 摘要:
 492         //     为该控件获取数据绑定。
 493         //
 494         // 返回结果:
 495         //     System.Windows.Forms.ControlBindingsCollection,它包含该控件的 System.Windows.Forms.Binding
 496         //     对象。
 497         [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
 498         [ParenthesizePropertyName(true)]
 499         [RefreshProperties(RefreshProperties.All)]
 500         [SRCategoryAttribute("CatData")]
 501         [SRDescriptionAttribute("ControlBindingsDescr")]
 502         public ControlBindingsCollection DataBindings { get; }
 503         //
 504         // 摘要:
 505         //     获取表示控件的显示区域的矩形。
 506         //
 507         // 返回结果:
 508         //     一个 System.Drawing.Rectangle,它表示控件的显示区域。
 509         [Browsable(false)]
 510         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 511         [EditorBrowsable(EditorBrowsableState.Advanced)]
 512         [SRDescriptionAttribute("ControlDisplayRectangleDescr")]
 513         public virtual Rectangle DisplayRectangle { get; }
 514         //
 515         // 摘要:
 516         //     获取一个值,该值指示 System.Windows.Forms.Control 基类是否在释放进程中。
 517         //
 518         // 返回结果:
 519         //     如果 System.Windows.Forms.Control 基类在释放进程中,则为 true;否则为 false。
 520         [Browsable(false)]
 521         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 522         [EditorBrowsable(EditorBrowsableState.Advanced)]
 523         [SRDescriptionAttribute("ControlDisposingDescr")]
 524         public bool Disposing { get; }
 525         //
 526         // 摘要:
 527         //     获取或设置哪些控件边框停靠到其父控件并确定控件如何随其父级一起调整大小。
 528         //
 529         // 返回结果:
 530         //     System.Windows.Forms.DockStyle 值之一。 默认值为 System.Windows.Forms.DockStyle.None。
 531         //
 532         // 异常:
 533         //   T:System.ComponentModel.InvalidEnumArgumentException:
 534         //     分配的值不是 System.Windows.Forms.DockStyle 值之一。
 535         [DefaultValue(DockStyle.None)]
 536         [Localizable(true)]
 537         [RefreshProperties(RefreshProperties.Repaint)]
 538         [SRCategoryAttribute("CatLayout")]
 539         [SRDescriptionAttribute("ControlDockDescr")]
 540         public virtual DockStyle Dock { get; set; }
 541         //
 542         // 摘要:
 543         //     获取或设置一个值,该值指示控件是否可以对用户交互作出响应。
 544         //
 545         // 返回结果:
 546         //     如果控件可以对用户交互作出响应,则为 true;否则为 false。 默认值为 true。
 547         [DispId(-514)]
 548         [Localizable(true)]
 549         [SRCategoryAttribute("CatBehavior")]
 550         [SRDescriptionAttribute("ControlEnabledDescr")]
 551         public bool Enabled { get; set; }
 552         //
 553         // 摘要:
 554         //     获取一个值,该值指示控件是否有输入焦点。
 555         //
 556         // 返回结果:
 557         //     如果控件有焦点,则为 true;否则为 false。
 558         [Browsable(false)]
 559         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 560         [EditorBrowsable(EditorBrowsableState.Advanced)]
 561         [SRDescriptionAttribute("ControlFocusedDescr")]
 562         public virtual bool Focused { get; }
 563         //
 564         // 摘要:
 565         //     获取或设置控件显示的文字的字体。
 566         //
 567         // 返回结果:
 568         //     要应用于由控件显示的文本的 System.Drawing.Font。 默认为 System.Windows.Forms.Control.DefaultFont
 569         //     属性的值。
 570         [AmbientValue(null)]
 571         [DispId(-512)]
 572         [Localizable(true)]
 573         [SRCategoryAttribute("CatAppearance")]
 574         [SRDescriptionAttribute("ControlFontDescr")]
 575         public virtual Font Font { get; set; }
 576         //
 577         // 摘要:
 578         //     获取或设置控件的前景色。
 579         //
 580         // 返回结果:
 581         //     控件的前景 System.Drawing.Color。 默认为 System.Windows.Forms.Control.DefaultForeColor
 582         //     属性的值。
 583         [DispId(-513)]
 584         [SRCategoryAttribute("CatAppearance")]
 585         [SRDescriptionAttribute("ControlForeColorDescr")]
 586         public virtual Color ForeColor { get; set; }
 587         //
 588         // 摘要:
 589         //     获取控件绑定到的窗口句柄。
 590         //
 591         // 返回结果:
 592         //     一个 System.IntPtr,包含控件的窗口句柄 (HWND)。
 593         [Browsable(false)]
 594         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 595         [DispId(-515)]
 596         [SRDescriptionAttribute("ControlHandleDescr")]
 597         public IntPtr Handle { get; }
 598         //
 599         // 摘要:
 600         //     获取一个值,该值指示控件是否包含一个或多个子控件。
 601         //
 602         // 返回结果:
 603         //     如果控件包含一个或多个子控件,则为 true;否则为 false。
 604         [Browsable(false)]
 605         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 606         [EditorBrowsable(EditorBrowsableState.Advanced)]
 607         [SRDescriptionAttribute("ControlHasChildrenDescr")]
 608         public bool HasChildren { get; }
 609         //
 610         // 摘要:
 611         //     获取或设置控件的高度。
 612         //
 613         // 返回结果:
 614         //     控件的高度(以像素为单位)。
 615         [Browsable(false)]
 616         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 617         [EditorBrowsable(EditorBrowsableState.Always)]
 618         [SRCategoryAttribute("CatLayout")]
 619         [SRDescriptionAttribute("ControlHeightDescr")]
 620         public int Height { get; set; }
 621         //
 622         // 摘要:
 623         //     获取或设置控件的输入法编辑器 (IME) 模式。
 624         //
 625         // 返回结果:
 626         //     System.Windows.Forms.ImeMode 值之一。 默认值为 System.Windows.Forms.ImeMode.Inherit。
 627         //
 628         // 异常:
 629         //   T:System.ComponentModel.InvalidEnumArgumentException:
 630         //     所分配的值不是一个 System.Windows.Forms.ImeMode 枚举值。
 631         [AmbientValue(ImeMode.Inherit)]
 632         [Localizable(true)]
 633         [SRCategoryAttribute("CatBehavior")]
 634         [SRDescriptionAttribute("ControlIMEModeDescr")]
 635         public ImeMode ImeMode { get; set; }
 636         //
 637         // 摘要:
 638         //     获取一个值,该值指示调用方在对控件进行方法调用时是否必须调用 Invoke 方法,因为调用方位于创建控件所在的线程以外的线程中。
 639         //
 640         // 返回结果:
 641         //     如果控件的 System.Windows.Forms.Control.Handle 是在与调用线程不同的线程上创建的(说明您必须通过 Invoke 方法对控件进行调用),则为
 642         //     true;否则为 false。
 643         [Browsable(false)]
 644         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 645         [EditorBrowsable(EditorBrowsableState.Advanced)]
 646         [SRDescriptionAttribute("ControlInvokeRequiredDescr")]
 647         public bool InvokeRequired { get; }
 648         //
 649         // 摘要:
 650         //     获取或设置一个值,该值指示控件对辅助功能应用程序是否可见。
 651         //
 652         // 返回结果:
 653         //     如果控件对辅助功能应用程序可见,则为 true;否则为 false。
 654         [Browsable(false)]
 655         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 656         [EditorBrowsable(EditorBrowsableState.Advanced)]
 657         [SRCategoryAttribute("CatBehavior")]
 658         [SRDescriptionAttribute("ControlIsAccessibleDescr")]
 659         public bool IsAccessible { get; set; }
 660         //
 661         // 摘要:
 662         //     获取一个值,该值指示控件是否已经被释放。
 663         //
 664         // 返回结果:
 665         //     如果控件已经被释放,则为 true;否则为 false。
 666         [Browsable(false)]
 667         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 668         [EditorBrowsable(EditorBrowsableState.Advanced)]
 669         [SRDescriptionAttribute("ControlDisposedDescr")]
 670         public bool IsDisposed { get; }
 671         //
 672         // 摘要:
 673         //     获取一个值,该值指示控件是否有与它关联的句柄。
 674         //
 675         // 返回结果:
 676         //     如果已经为控件分配了句柄,则为 true;否则为 false。
 677         [Browsable(false)]
 678         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 679         [EditorBrowsable(EditorBrowsableState.Advanced)]
 680         [SRDescriptionAttribute("ControlHandleCreatedDescr")]
 681         public bool IsHandleCreated { get; }
 682         //
 683         // 摘要:
 684         //     获取一个值,该值指示此控件是否为镜像控件。
 685         //
 686         // 返回结果:
 687         //     如果该控件是镜像控件,则为 true;否则为 false。
 688         [Browsable(false)]
 689         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 690         [EditorBrowsable(EditorBrowsableState.Advanced)]
 691         [SRCategoryAttribute("CatLayout")]
 692         [SRDescriptionAttribute("IsMirroredDescr")]
 693         public bool IsMirrored { get; }
 694         //
 695         // 摘要:
 696         //     获取控件的布局引擎的缓存实例。
 697         //
 698         // 返回结果:
 699         //     控件内容的 System.Windows.Forms.Layout.LayoutEngine。
 700         [Browsable(false)]
 701         [EditorBrowsable(EditorBrowsableState.Advanced)]
 702         public virtual LayoutEngine LayoutEngine { get; }
 703         //
 704         // 摘要:
 705         //     获取或设置控件左边缘与其容器的工作区左边缘之间的距离(以像素为单位)。
 706         //
 707         // 返回结果:
 708         //     System.Int32 表示控件左边缘与其容器的工作区左边缘之间的距离(以像素为单位)。
 709         [Browsable(false)]
 710         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 711         [EditorBrowsable(EditorBrowsableState.Always)]
 712         [SRCategoryAttribute("CatLayout")]
 713         [SRDescriptionAttribute("ControlLeftDescr")]
 714         public int Left { get; set; }
 715         //
 716         // 摘要:
 717         //     获取或设置该控件的左上角相对于其容器的左上角的坐标。
 718         //
 719         // 返回结果:
 720         //     System.Drawing.Point,它表示控件的左上角相对于其容器的左上角。
 721         [Localizable(true)]
 722         [SRCategoryAttribute("CatLayout")]
 723         [SRDescriptionAttribute("ControlLocationDescr")]
 724         public Point Location { get; set; }
 725         //
 726         // 摘要:
 727         //     获取或设置控件之间的空间。
 728         //
 729         // 返回结果:
 730         //     表示控件之间的间距的 System.Windows.Forms.Padding。
 731         [Localizable(true)]
 732         [SRCategoryAttribute("CatLayout")]
 733         [SRDescriptionAttribute("ControlMarginDescr")]
 734         public Padding Margin { get; set; }
 735         //
 736         // 摘要:
 737         //     获取或设置大小,该大小是 System.Windows.Forms.Control.GetPreferredSize(System.Drawing.Size)
 738         //     可以指定的上限。
 739         //
 740         // 返回结果:
 741         //     类型为 System.Drawing.Size 的有序对,表示矩形的宽度和高度。
 742         [AmbientValue(typeof(Size), "0, 0")]
 743         [Localizable(true)]
 744         [SRCategoryAttribute("CatLayout")]
 745         [SRDescriptionAttribute("ControlMaximumSizeDescr")]
 746         public virtual Size MaximumSize { get; set; }
 747         //
 748         // 摘要:
 749         //     获取或设置大小,该大小是 System.Windows.Forms.Control.GetPreferredSize(System.Drawing.Size)
 750         //     可以指定的下限。
 751         //
 752         // 返回结果:
 753         //     类型为 System.Drawing.Size 的有序对,表示矩形的宽度和高度。
 754         [Localizable(true)]
 755         [SRCategoryAttribute("CatLayout")]
 756         [SRDescriptionAttribute("ControlMinimumSizeDescr")]
 757         public virtual Size MinimumSize { get; set; }
 758         //
 759         // 摘要:
 760         //     获取或设置控件的名称。
 761         //
 762         // 返回结果:
 763         //     控件的名称。 默认值为空字符串 ("")。
 764         [Browsable(false)]
 765         public string Name { get; set; }
 766         //
 767         // 摘要:
 768         //     获取或设置控件内的空白。
 769         //
 770         // 返回结果:
 771         //     表示控件的内部间距特征的 System.Windows.Forms.Padding。
 772         [Localizable(true)]
 773         [SRCategoryAttribute("CatLayout")]
 774         [SRDescriptionAttribute("ControlPaddingDescr")]
 775         public Padding Padding { get; set; }
 776         //
 777         // 摘要:
 778         //     获取或设置控件的父容器。
 779         //
 780         // 返回结果:
 781         //     一个 System.Windows.Forms.Control,表示控件的父控件或容器控件。
 782         [Browsable(false)]
 783         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 784         [SRCategoryAttribute("CatBehavior")]
 785         [SRDescriptionAttribute("ControlParentDescr")]
 786         public Control Parent { get; set; }
 787         //
 788         // 摘要:
 789         //     获取可以容纳控件的矩形区域的大小。
 790         //
 791         // 返回结果:
 792         //     包含高度和宽度的 System.Drawing.Size(以像素为单位)。
 793         [Browsable(false)]
 794         public Size PreferredSize { get; }
 795         //
 796         // 摘要:
 797         //     获取包含控件的程序集的产品名称。
 798         //
 799         // 返回结果:
 800         //     包含控件的程序集的产品名称。
 801         [Browsable(false)]
 802         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 803         [EditorBrowsable(EditorBrowsableState.Advanced)]
 804         [SRDescriptionAttribute("ControlProductNameDescr")]
 805         public string ProductName { get; }
 806         //
 807         // 摘要:
 808         //     获取包含控件的程序集的版本。
 809         //
 810         // 返回结果:
 811         //     包含控件的程序集的文件版本。
 812         [Browsable(false)]
 813         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 814         [EditorBrowsable(EditorBrowsableState.Advanced)]
 815         [SRDescriptionAttribute("ControlProductVersionDescr")]
 816         public string ProductVersion { get; }
 817         //
 818         // 摘要:
 819         //     获取一个值,该值指示控件当前是否在重新创建其句柄。
 820         //
 821         // 返回结果:
 822         //     如果控件当前在重新创建其句柄,则为 true;否则为 false。
 823         [Browsable(false)]
 824         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 825         [EditorBrowsable(EditorBrowsableState.Advanced)]
 826         [SRCategoryAttribute("CatBehavior")]
 827         [SRDescriptionAttribute("ControlRecreatingHandleDescr")]
 828         public bool RecreatingHandle { get; }
 829         //
 830         // 摘要:
 831         //     获取或设置与控件关联的窗口区域。
 832         //
 833         // 返回结果:
 834         //     与控件关联的窗口 System.Drawing.Region。
 835         [Browsable(false)]
 836         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 837         [EditorBrowsable(EditorBrowsableState.Advanced)]
 838         [SRCategoryAttribute("CatLayout")]
 839         [SRDescriptionAttribute("ControlRegionDescr")]
 840         public Region Region { get; set; }
 841         //
 842         // 摘要:
 843         //     获取控件右边缘与其容器的工作区左边缘之间的距离(以像素为单位)。
 844         //
 845         // 返回结果:
 846         //     System.Int32 表示控件右边缘与其容器的工作区左边缘之间的距离(以像素为单位)。
 847         [Browsable(false)]
 848         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 849         [EditorBrowsable(EditorBrowsableState.Advanced)]
 850         [SRCategoryAttribute("CatLayout")]
 851         [SRDescriptionAttribute("ControlRightDescr")]
 852         public int Right { get; }
 853         //
 854         // 摘要:
 855         //     获取或设置一个值,该值指示是否将控件的元素对齐以支持使用从右向左的字体的区域设置。
 856         //
 857         // 返回结果:
 858         //     System.Windows.Forms.RightToLeft 值之一。 默认值为 System.Windows.Forms.RightToLeft.Inherit。
 859         //
 860         // 异常:
 861         //   T:System.ComponentModel.InvalidEnumArgumentException:
 862         //     分配的值不是 System.Windows.Forms.RightToLeft 值之一。
 863         [AmbientValue(RightToLeft.Inherit)]
 864         [Localizable(true)]
 865         [SRCategoryAttribute("CatAppearance")]
 866         [SRDescriptionAttribute("ControlRightToLeftDescr")]
 867         public virtual RightToLeft RightToLeft { get; set; }
 868         //
 869         // 摘要:
 870         //     获取或设置控件的站点。
 871         //
 872         // 返回结果:
 873         //     与 System.Windows.Forms.Control 关联的 System.ComponentModel.ISite(如果有的话)。
 874         [EditorBrowsable(EditorBrowsableState.Advanced)]
 875         public override ISite Site { get; set; }
 876         //
 877         // 摘要:
 878         //     获取或设置控件的高度和宽度。
 879         //
 880         // 返回结果:
 881         //     System.Drawing.Size,表示控件的高度和宽度(以像素为单位)。
 882         [Localizable(true)]
 883         [SRCategoryAttribute("CatLayout")]
 884         [SRDescriptionAttribute("ControlSizeDescr")]
 885         public Size Size { get; set; }
 886         //
 887         // 摘要:
 888         //     获取或设置在控件的容器的控件的 Tab 键顺序。
 889         //
 890         // 返回结果:
 891         //     控件容器中控件集合内的控件的索引值。 容器中包括的控件以 Tab 键顺序排列。
 892         [Localizable(true)]
 893         [MergableProperty(false)]
 894         [SRCategoryAttribute("CatBehavior")]
 895         [SRDescriptionAttribute("ControlTabIndexDescr")]
 896         public int TabIndex { get; set; }
 897         //
 898         // 摘要:
 899         //     获取或设置一个值,该值指示用户能否使用 Tab 键将焦点放到该控件上。
 900         //
 901         // 返回结果:
 902         //     如果用户可以用 Tab 键将焦点放到此控件上,则为 true;反之,则为 false。 默认值为 true。 对于 System.Windows.Forms.Form
 903         //     类的实例,该属性将始终返回 true。
 904         [DefaultValue(true)]
 905         [DispId(-516)]
 906         [SRCategoryAttribute("CatBehavior")]
 907         [SRDescriptionAttribute("ControlTabStopDescr")]
 908         public bool TabStop { get; set; }
 909         //
 910         // 摘要:
 911         //     获取或设置包含有关控件的数据的对象。
 912         //
 913         // 返回结果:
 914         //     一个 System.Object,它包含有关控件的数据。 默认值为 null。
 915         [Bindable(true)]
 916         [DefaultValue(null)]
 917         [Localizable(false)]
 918         [SRCategoryAttribute("CatData")]
 919         [SRDescriptionAttribute("ControlTagDescr")]
 920         [TypeConverter(typeof(StringConverter))]
 921         public object Tag { get; set; }
 922         //
 923         // 摘要:
 924         //     获取或设置与此控件关联的文本。
 925         //
 926         // 返回结果:
 927         //     与该控件关联的文本。
 928         [Bindable(true)]
 929         [DispId(-517)]
 930         [Localizable(true)]
 931         [SRCategoryAttribute("CatAppearance")]
 932         [SRDescriptionAttribute("ControlTextDescr")]
 933         public virtual string Text { get; set; }
 934         //
 935         // 摘要:
 936         //     获取或设置控件上边缘与其容器的工作区上边缘之间的距离(以像素为单位)。
 937         //
 938         // 返回结果:
 939         //     System.Int32 表示控件下边缘与其容器的工作区上边缘之间的距离(以像素为单位)。
 940         [Browsable(false)]
 941         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 942         [EditorBrowsable(EditorBrowsableState.Always)]
 943         [SRCategoryAttribute("CatLayout")]
 944         [SRDescriptionAttribute("ControlTopDescr")]
 945         public int Top { get; set; }
 946         //
 947         // 摘要:
 948         //     获取没有另一个 Windows 窗体控件作为其父级的父控件。 通常,这是控件所在的最外面的 System.Windows.Forms.Form。
 949         //
 950         // 返回结果:
 951         //     System.Windows.Forms.Control,它表示包含当前控件的顶级控件。
 952         [Browsable(false)]
 953         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 954         [EditorBrowsable(EditorBrowsableState.Advanced)]
 955         [SRCategoryAttribute("CatBehavior")]
 956         [SRDescriptionAttribute("ControlTopLevelControlDescr")]
 957         public Control TopLevelControl { get; }
 958         //
 959         // 摘要:
 960         //     获取或设置一个值,该值指示是否将等待光标用于当前控件以及所有子控件。
 961         //
 962         // 返回结果:
 963         //     将等待光标用于当前控件以及所有子控件时,为 true;否则为 false。 默认值为 false。
 964         [Browsable(true)]
 965         [DefaultValue(false)]
 966         [EditorBrowsable(EditorBrowsableState.Always)]
 967         [SRCategoryAttribute("CatAppearance")]
 968         [SRDescriptionAttribute("ControlUseWaitCursorDescr")]
 969         public bool UseWaitCursor { get; set; }
 970         //
 971         // 摘要:
 972         //     获取或设置一个值,该值指示是否显示该控件及其所有子控件。
 973         //
 974         // 返回结果:
 975         //     如果显示该控件及其所有子控件,则为 true;否则为 false。 默认值为 true。
 976         [Localizable(true)]
 977         [SRCategoryAttribute("CatBehavior")]
 978         [SRDescriptionAttribute("ControlVisibleDescr")]
 979         public bool Visible { get; set; }
 980         //
 981         // 摘要:
 982         //     获取或设置控件的宽度。
 983         //
 984         // 返回结果:
 985         //     控件的宽度(以像素为单位)。
 986         [Browsable(false)]
 987         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
 988         [EditorBrowsable(EditorBrowsableState.Always)]
 989         [SRCategoryAttribute("CatLayout")]
 990         [SRDescriptionAttribute("ControlWidthDescr")]
 991         public int Width { get; set; }
 992         //
 993         // 摘要:
 994         //     此属性与此类无关。
 995         //
 996         // 返回结果:
 997         //     一个 System.Windows.Forms.IWindowTarget。
 998         [Browsable(false)]
 999         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
1000         [EditorBrowsable(EditorBrowsableState.Never)]
1001         [SRCategoryAttribute("CatBehavior")]
1002         [SRDescriptionAttribute("ControlWindowTargetDescr")]
1003         public IWindowTarget WindowTarget { get; set; }
1004         //
1005         // 摘要:
1006         //     获取一个用以指示是否可以将 System.Windows.Forms.Control.ImeMode 属性设置为活动值的值,以启用 IME 支持。
1007         //
1008         // 返回结果:
1009         //     所有情况下均为 true。
1010         protected virtual bool CanEnableIme { get; }
1011         //
1012         // 摘要:
1013         //     确定是否可以在控件上引发事件。
1014         //
1015         // 返回结果:
1016         //     如果控件是作为其事件未被冻结的 ActiveX 控件承载的,则为 true;否则为 false。
1017         protected override bool CanRaiseEvents { get; }
1018         //
1019         // 摘要:
1020         //     获取创建控件句柄时所需要的创建参数。
1021         //
1022         // 返回结果:
1023         //     System.Windows.Forms.CreateParams,包含创建控件的句柄时所需的创建参数。
1024         protected virtual CreateParams CreateParams { get; }
1025         //
1026         // 摘要:
1027         //     获取或设置控件的默认光标。
1028         //
1029         // 返回结果:
1030         //     一个 System.Windows.Forms.Cursor 类型的对象,表示当前默认光标。
1031         protected virtual Cursor DefaultCursor { get; }
1032         //
1033         // 摘要:
1034         //     获取控件支持的输入法编辑器 (IME) 模式。
1035         //
1036         // 返回结果:
1037         //     System.Windows.Forms.ImeMode 值之一。
1038         protected virtual ImeMode DefaultImeMode { get; }
1039         //
1040         // 摘要:
1041         //     获取控件之间默认指定的间距(以像素为单位)。
1042         //
1043         // 返回结果:
1044         //     表示控件之间的默认间距的 System.Windows.Forms.Padding。
1045         protected virtual Padding DefaultMargin { get; }
1046         //
1047         // 摘要:
1048         //     获取以像素为单位的长度和高度,此长度和高度被指定为控件的默认最大大小。
1049         //
1050         // 返回结果:
1051         //     一个表示控件大小的 System.Drawing.Point.#ctor(System.Drawing.Size)。
1052         protected virtual Size DefaultMaximumSize { get; }
1053         //
1054         // 摘要:
1055         //     获取以像素为单位的长度和高度,此长度和高度被指定为控件的默认最小大小。
1056         //
1057         // 返回结果:
1058         //     一个表示控件大小的 System.Drawing.Size。
1059         protected virtual Size DefaultMinimumSize { get; }
1060         //
1061         // 摘要:
1062         //     获取控件内容的内部间距(以像素为单位)。
1063         //
1064         // 返回结果:
1065         //     表示控件内容的内部间距的 System.Windows.Forms.Padding。
1066         protected virtual Padding DefaultPadding { get; }
1067         //
1068         // 摘要:
1069         //     获取控件的默认大小。
1070         //
1071         // 返回结果:
1072         //     控件的默认 System.Drawing.Size。
1073         protected virtual Size DefaultSize { get; }
1074         //
1075         // 摘要:
1076         //     获取或设置一个值,该值指示此控件是否应使用辅助缓冲区重绘其图面,以减少或避免闪烁。
1077         //
1078         // 返回结果:
1079         //     如果应使用双缓冲绘制控件的图面,则为 true;否则为 false。
1080         [SRCategoryAttribute("CatBehavior")]
1081         [SRDescriptionAttribute("ControlDoubleBufferedDescr")]
1082         protected virtual bool DoubleBuffered { get; set; }
1083         //
1084         // 摘要:
1085         //     获取或设置控件的字体的高度。
1086         //
1087         // 返回结果:
1088         //     控件的 System.Drawing.Font 的高度(以像素为单位)。
1089         protected int FontHeight { get; set; }
1090         //
1091         // 摘要:
1092         //     获取或设置控件的 IME 模式。
1093         //
1094         // 返回结果:
1095         //     控件的 IME 模式。
1096         protected virtual ImeMode ImeModeBase { get; set; }
1097         //
1098         // 摘要:
1099         //     获取或设置一个值,该值指示控件在调整大小时是否重绘自己。
1100         //
1101         // 返回结果:
1102         //     如果控件在调整大小时重绘自己,则为 true;否则为 false。
1103         [SRDescriptionAttribute("ControlResizeRedrawDescr")]
1104         protected bool ResizeRedraw { get; set; }
1105         //
1106         // 摘要:
1107         //     获取一个值,该值确定子控件的缩放。
1108         //
1109         // 返回结果:
1110         //     如果在调用该控件上的 System.Windows.Forms.Control.Scale(System.Single) 方法时将缩放子控件,则为 true;否则为
1111         //     false。 默认值为 true。
1112         [EditorBrowsable(EditorBrowsableState.Advanced)]
1113         protected virtual bool ScaleChildren { get; }
1114         //
1115         // 摘要:
1116         //     此属性现已过时。
1117         //
1118         // 返回结果:
1119         //     如果控件从右向左呈现,则为 true;否则为 false。 默认值为 false。
1120         [Obsolete("This property has been deprecated. Please use RightToLeft instead. http://go.microsoft.com/fwlink/?linkid=14202")]
1121         protected internal bool RenderRightToLeft { get; }
1122         //
1123         // 摘要:
1124         //     获取一个值,该值指示控件是否应显示聚焦框。
1125         //
1126         // 返回结果:
1127         //     如果控件应显示聚焦框,则为 true;否则为 false。
1128         [Browsable(false)]
1129         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
1130         [EditorBrowsable(EditorBrowsableState.Advanced)]
1131         protected internal virtual bool ShowFocusCues { get; }
1132         //
1133         // 摘要:
1134         //     获取一个值,该值指示用户界面是否处于适当的状态以显示或隐藏键盘快捷键。
1135         //
1136         // 返回结果:
1137         //     如果键盘快捷键可见,则为 true;否则为 false。
1138         [Browsable(false)]
1139         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
1140         [EditorBrowsable(EditorBrowsableState.Advanced)]
1141         protected internal virtual bool ShowKeyboardCues { get; }
1142 
1143         //
1144         // 摘要:
1145         //     此事件与该类无关。
1146         [Browsable(false)]
1147         [EditorBrowsable(EditorBrowsableState.Never)]
1148         [SRCategoryAttribute("CatPropertyChanged")]
1149         [SRDescriptionAttribute("ControlOnAutoSizeChangedDescr")]
1150         public event EventHandler AutoSizeChanged;
1151         //
1152         // 摘要:
1153         //     当 System.Windows.Forms.Control.BackColor 属性的值更改时发生。
1154         [SRCategoryAttribute("CatPropertyChanged")]
1155         [SRDescriptionAttribute("ControlOnBackColorChangedDescr")]
1156         public event EventHandler BackColorChanged;
1157         //
1158         // 摘要:
1159         //     当 System.Windows.Forms.Control.BackgroundImage 属性的值更改时发生。
1160         [SRCategoryAttribute("CatPropertyChanged")]
1161         [SRDescriptionAttribute("ControlOnBackgroundImageChangedDescr")]
1162         public event EventHandler BackgroundImageChanged;
1163         //
1164         // 摘要:
1165         //     当 System.Windows.Forms.Control.BackgroundImageLayout 属性更改时发生。
1166         [SRCategoryAttribute("CatPropertyChanged")]
1167         [SRDescriptionAttribute("ControlOnBackgroundImageLayoutChangedDescr")]
1168         public event EventHandler BackgroundImageLayoutChanged;
1169         //
1170         // 摘要:
1171         //     当 System.Windows.Forms.BindingContext 属性的值更改时发生。
1172         [SRCategoryAttribute("CatPropertyChanged")]
1173         [SRDescriptionAttribute("ControlOnBindingContextChangedDescr")]
1174         public event EventHandler BindingContextChanged;
1175         //
1176         // 摘要:
1177         //     当 System.Windows.Forms.Control.CausesValidation 属性的值更改时发生。
1178         [SRCategoryAttribute("CatPropertyChanged")]
1179         [SRDescriptionAttribute("ControlOnCausesValidationChangedDescr")]
1180         public event EventHandler CausesValidationChanged;
1181         //
1182         // 摘要:
1183         //     在焦点或键盘用户界面 (UI) 提示更改时发生。
1184         [SRCategoryAttribute("CatBehavior")]
1185         [SRDescriptionAttribute("ControlOnChangeUICuesDescr")]
1186         public event UICuesEventHandler ChangeUICues;
1187         //
1188         // 摘要:
1189         //     在单击控件时发生。
1190         [SRCategoryAttribute("CatAction")]
1191         [SRDescriptionAttribute("ControlOnClickDescr")]
1192         public event EventHandler Click;
1193         //
1194         // 摘要:
1195         //     当 System.Windows.Forms.Control.ClientSize 属性的值更改时发生。
1196         [SRCategoryAttribute("CatPropertyChanged")]
1197         [SRDescriptionAttribute("ControlOnClientSizeChangedDescr")]
1198         public event EventHandler ClientSizeChanged;
1199         //
1200         // 摘要:
1201         //     当 System.Windows.Forms.Control.ContextMenu 属性的值更改时发生。
1202         [Browsable(false)]
1203         [SRCategoryAttribute("CatPropertyChanged")]
1204         [SRDescriptionAttribute("ControlOnContextMenuChangedDescr")]
1205         public event EventHandler ContextMenuChanged;
1206         //
1207         // 摘要:
1208         //     当 System.Windows.Forms.Control.ContextMenuStrip 属性的值更改时发生。
1209         [SRCategoryAttribute("CatPropertyChanged")]
1210         [SRDescriptionAttribute("ControlContextMenuStripChangedDescr")]
1211         public event EventHandler ContextMenuStripChanged;
1212         //
1213         // 摘要:
1214         //     在将新控件添加到 System.Windows.Forms.Control.ControlCollection 时发生。
1215         [Browsable(true)]
1216         [EditorBrowsable(EditorBrowsableState.Advanced)]
1217         [SRCategoryAttribute("CatBehavior")]
1218         [SRDescriptionAttribute("ControlOnControlAddedDescr")]
1219         public event ControlEventHandler ControlAdded;
1220         //
1221         // 摘要:
1222         //     在从 System.Windows.Forms.Control.ControlCollection 移除控件时发生。
1223         [Browsable(true)]
1224         [EditorBrowsable(EditorBrowsableState.Advanced)]
1225         [SRCategoryAttribute("CatBehavior")]
1226         [SRDescriptionAttribute("ControlOnControlRemovedDescr")]
1227         public event ControlEventHandler ControlRemoved;
1228         //
1229         // 摘要:
1230         //     当 System.Windows.Forms.Control.Cursor 属性的值更改时发生。
1231         [SRCategoryAttribute("CatPropertyChanged")]
1232         [SRDescriptionAttribute("ControlOnCursorChangedDescr")]
1233         public event EventHandler CursorChanged;
1234         //
1235         // 摘要:
1236         //     当 System.Windows.Forms.Control.Dock 属性的值更改时发生。
1237         [SRCategoryAttribute("CatPropertyChanged")]
1238         [SRDescriptionAttribute("ControlOnDockChangedDescr")]
1239         public event EventHandler DockChanged;
1240         //
1241         // 摘要:
1242         //     在双击控件时发生。
1243         [SRCategoryAttribute("CatAction")]
1244         [SRDescriptionAttribute("ControlOnDoubleClickDescr")]
1245         public event EventHandler DoubleClick;
1246         //
1247         // 摘要:
1248         //     在完成拖放操作时发生。
1249         [SRCategoryAttribute("CatDragDrop")]
1250         [SRDescriptionAttribute("ControlOnDragDropDescr")]
1251         public event DragEventHandler DragDrop;
1252         //
1253         // 摘要:
1254         //     在将对象拖入控件的边界时发生。
1255         [SRCategoryAttribute("CatDragDrop")]
1256         [SRDescriptionAttribute("ControlOnDragEnterDescr")]
1257         public event DragEventHandler DragEnter;
1258         //
1259         // 摘要:
1260         //     在将对象拖出控件的边界时发生。
1261         [SRCategoryAttribute("CatDragDrop")]
1262         [SRDescriptionAttribute("ControlOnDragLeaveDescr")]
1263         public event EventHandler DragLeave;
1264         //
1265         // 摘要:
1266         //     在将对象拖到控件的边界上发生。
1267         [SRCategoryAttribute("CatDragDrop")]
1268         [SRDescriptionAttribute("ControlOnDragOverDescr")]
1269         public event DragEventHandler DragOver;
1270         //
1271         // 摘要:
1272         //     在 System.Windows.Forms.Control.Enabled 属性值更改后发生。
1273         [SRCategoryAttribute("CatPropertyChanged")]
1274         [SRDescriptionAttribute("ControlOnEnabledChangedDescr")]
1275         public event EventHandler EnabledChanged;
1276         //
1277         // 摘要:
1278         //     进入控件时发生。
1279         [SRCategoryAttribute("CatFocus")]
1280         [SRDescriptionAttribute("ControlOnEnterDescr")]
1281         public event EventHandler Enter;
1282         //
1283         // 摘要:
1284         //     在 System.Windows.Forms.Control.Font 属性值更改时发生。
1285         [SRCategoryAttribute("CatPropertyChanged")]
1286         [SRDescriptionAttribute("ControlOnFontChangedDescr")]
1287         public event EventHandler FontChanged;
1288         //
1289         // 摘要:
1290         //     在 System.Windows.Forms.Control.ForeColor 属性值更改时发生。
1291         [SRCategoryAttribute("CatPropertyChanged")]
1292         [SRDescriptionAttribute("ControlOnForeColorChangedDescr")]
1293         public event EventHandler ForeColorChanged;
1294         //
1295         // 摘要:
1296         //     在执行拖动操作期间发生。
1297         [SRCategoryAttribute("CatDragDrop")]
1298         [SRDescriptionAttribute("ControlOnGiveFeedbackDescr")]
1299         public event GiveFeedbackEventHandler GiveFeedback;
1300         //
1301         // 摘要:
1302         //     在控件接收焦点时发生。
1303         [Browsable(false)]
1304         [EditorBrowsable(EditorBrowsableState.Advanced)]
1305         [SRCategoryAttribute("CatFocus")]
1306         [SRDescriptionAttribute("ControlOnGotFocusDescr")]
1307         public event EventHandler GotFocus;
1308         //
1309         // 摘要:
1310         //     在为控件创建句柄时发生。
1311         [Browsable(false)]
1312         [EditorBrowsable(EditorBrowsableState.Advanced)]
1313         [SRCategoryAttribute("CatPrivate")]
1314         [SRDescriptionAttribute("ControlOnCreateHandleDescr")]
1315         public event EventHandler HandleCreated;
1316         //
1317         // 摘要:
1318         //     在控件的句柄处于销毁过程中时发生。
1319         [Browsable(false)]
1320         [EditorBrowsable(EditorBrowsableState.Advanced)]
1321         [SRCategoryAttribute("CatPrivate")]
1322         [SRDescriptionAttribute("ControlOnDestroyHandleDescr")]
1323         public event EventHandler HandleDestroyed;
1324         //
1325         // 摘要:
1326         //     当用户请求控件的帮助时发生。
1327         [SRCategoryAttribute("CatBehavior")]
1328         [SRDescriptionAttribute("ControlOnHelpDescr")]
1329         public event HelpEventHandler HelpRequested;
1330         //
1331         // 摘要:
1332         //     在 System.Windows.Forms.Control.ImeMode 属性更改后发生。
1333         [SRDescriptionAttribute("ControlOnImeModeChangedDescr")]
1334         [WinCategoryAttribute("Behavior")]
1335         public event EventHandler ImeModeChanged;
1336         //
1337         // 摘要:
1338         //     在控件的显示需要重绘时发生。
1339         [Browsable(false)]
1340         [EditorBrowsable(EditorBrowsableState.Advanced)]
1341         [SRCategoryAttribute("CatAppearance")]
1342         [SRDescriptionAttribute("ControlOnInvalidateDescr")]
1343         public event InvalidateEventHandler Invalidated;
1344         //
1345         // 摘要:
1346         //     在控件有焦点的情况下按下键时发生。
1347         [SRCategoryAttribute("CatKey")]
1348         [SRDescriptionAttribute("ControlOnKeyDownDescr")]
1349         public event KeyEventHandler KeyDown;
1350         //
1351         // 摘要:
1352         //     在控件有焦点的情况下按下键时发生。
1353         [SRCategoryAttribute("CatKey")]
1354         [SRDescriptionAttribute("ControlOnKeyPressDescr")]
1355         public event KeyPressEventHandler KeyPress;
1356         //
1357         // 摘要:
1358         //     在控件有焦点的情况下释放键时发生。
1359         [SRCategoryAttribute("CatKey")]
1360         [SRDescriptionAttribute("ControlOnKeyUpDescr")]
1361         public event KeyEventHandler KeyUp;
1362         //
1363         // 摘要:
1364         //     在控件应重新定位其子控件时发生。
1365         [SRCategoryAttribute("CatLayout")]
1366         [SRDescriptionAttribute("ControlOnLayoutDescr")]
1367         public event LayoutEventHandler Layout;
1368         //
1369         // 摘要:
1370         //     在输入焦点离开控件时发生。
1371         [SRCategoryAttribute("CatFocus")]
1372         [SRDescriptionAttribute("ControlOnLeaveDescr")]
1373         public event EventHandler Leave;
1374         //
1375         // 摘要:
1376         //     在 System.Windows.Forms.Control.Location 属性值更改后发生。
1377         [SRCategoryAttribute("CatPropertyChanged")]
1378         [SRDescriptionAttribute("ControlOnLocationChangedDescr")]
1379         public event EventHandler LocationChanged;
1380         //
1381         // 摘要:
1382         //     当控件失去焦点时发生。
1383         [Browsable(false)]
1384         [EditorBrowsable(EditorBrowsableState.Advanced)]
1385         [SRCategoryAttribute("CatFocus")]
1386         [SRDescriptionAttribute("ControlOnLostFocusDescr")]
1387         public event EventHandler LostFocus;
1388         //
1389         // 摘要:
1390         //     在控件边距更改时发生。
1391         [SRCategoryAttribute("CatLayout")]
1392         [SRDescriptionAttribute("ControlOnMarginChangedDescr")]
1393         public event EventHandler MarginChanged;
1394         //
1395         // 摘要:
1396         //     当控件失去鼠标捕获时发生。
1397         [SRCategoryAttribute("CatAction")]
1398         [SRDescriptionAttribute("ControlOnMouseCaptureChangedDescr")]
1399         public event EventHandler MouseCaptureChanged;
1400         //
1401         // 摘要:
1402         //     在鼠标单击该控件时发生。
1403         [SRCategoryAttribute("CatAction")]
1404         [SRDescriptionAttribute("ControlOnMouseClickDescr")]
1405         public event MouseEventHandler MouseClick;
1406         //
1407         // 摘要:
1408         //     当用鼠标双击控件时发生。
1409         [SRCategoryAttribute("CatAction")]
1410         [SRDescriptionAttribute("ControlOnMouseDoubleClickDescr")]
1411         public event MouseEventHandler MouseDoubleClick;
1412         //
1413         // 摘要:
1414         //     当鼠标指针位于控件上并按下鼠标键时发生。
1415         [SRCategoryAttribute("CatMouse")]
1416         [SRDescriptionAttribute("ControlOnMouseDownDescr")]
1417         public event MouseEventHandler MouseDown;
1418         //
1419         // 摘要:
1420         //     在鼠标指针进入控件时发生。
1421         [SRCategoryAttribute("CatMouse")]
1422         [SRDescriptionAttribute("ControlOnMouseEnterDescr")]
1423         public event EventHandler MouseEnter;
1424         //
1425         // 摘要:
1426         //     在鼠标指针停放在控件上时发生。
1427         [SRCategoryAttribute("CatMouse")]
1428         [SRDescriptionAttribute("ControlOnMouseHoverDescr")]
1429         public event EventHandler MouseHover;
1430         //
1431         // 摘要:
1432         //     在鼠标指针离开控件时发生。
1433         [SRCategoryAttribute("CatMouse")]
1434         [SRDescriptionAttribute("ControlOnMouseLeaveDescr")]
1435         public event EventHandler MouseLeave;
1436         //
1437         // 摘要:
1438         //     在鼠标指针移到控件上时发生。
1439         [SRCategoryAttribute("CatMouse")]
1440         [SRDescriptionAttribute("ControlOnMouseMoveDescr")]
1441         public event MouseEventHandler MouseMove;
1442         //
1443         // 摘要:
1444         //     在鼠标指针在控件上并释放鼠标键时发生。
1445         [SRCategoryAttribute("CatMouse")]
1446         [SRDescriptionAttribute("ControlOnMouseUpDescr")]
1447         public event MouseEventHandler MouseUp;
1448         //
1449         // 摘要:
1450         //     在移动鼠标滚轮并且控件有焦点时发生。
1451         [Browsable(false)]
1452         [EditorBrowsable(EditorBrowsableState.Advanced)]
1453         [SRCategoryAttribute("CatMouse")]
1454         [SRDescriptionAttribute("ControlOnMouseWheelDescr")]
1455         public event MouseEventHandler MouseWheel;
1456         //
1457         // 摘要:
1458         //     在移动控件时发生。
1459         [SRCategoryAttribute("CatLayout")]
1460         [SRDescriptionAttribute("ControlOnMoveDescr")]
1461         public event EventHandler Move;
1462         //
1463         // 摘要:
1464         //     在控件空白区更改时发生。
1465         [SRCategoryAttribute("CatLayout")]
1466         [SRDescriptionAttribute("ControlOnPaddingChangedDescr")]
1467         public event EventHandler PaddingChanged;
1468         //
1469         // 摘要:
1470         //     在重绘控件时发生。
1471         [SRCategoryAttribute("CatAppearance")]
1472         [SRDescriptionAttribute("ControlOnPaintDescr")]
1473         public event PaintEventHandler Paint;
1474         //
1475         // 摘要:
1476         //     在 System.Windows.Forms.Control.Parent 属性值更改时发生。
1477         [SRCategoryAttribute("CatPropertyChanged")]
1478         [SRDescriptionAttribute("ControlOnParentChangedDescr")]
1479         public event EventHandler ParentChanged;
1480         //
1481         // 摘要:
1482         //     在焦点位于此控件上的情况下,当有按键动作时发生(在 System.Windows.Forms.Control.KeyDown 事件之前发生)。
1483         [SRCategoryAttribute("CatKey")]
1484         [SRDescriptionAttribute("PreviewKeyDownDescr")]
1485         public event PreviewKeyDownEventHandler PreviewKeyDown;
1486         //
1487         // 摘要:
1488         //     在 System.Windows.Forms.AccessibleObject 为辅助功能应用程序提供帮助时发生。
1489         [SRCategoryAttribute("CatBehavior")]
1490         [SRDescriptionAttribute("ControlOnQueryAccessibilityHelpDescr")]
1491         public event QueryAccessibilityHelpEventHandler QueryAccessibilityHelp;
1492         //
1493         // 摘要:
1494         //     在拖放操作期间发生,并且允许拖动源确定是否应取消拖放操作。
1495         [SRCategoryAttribute("CatDragDrop")]
1496         [SRDescriptionAttribute("ControlOnQueryContinueDragDescr")]
1497         public event QueryContinueDragEventHandler QueryContinueDrag;
1498         //
1499         // 摘要:
1500         //     当 System.Windows.Forms.Control.Region 属性的值更改时发生。
1501         [SRCategoryAttribute("CatPropertyChanged")]
1502         [SRDescriptionAttribute("ControlRegionChangedDescr")]
1503         public event EventHandler RegionChanged;
1504         //
1505         // 摘要:
1506         //     在调整控件大小时发生。
1507         [EditorBrowsable(EditorBrowsableState.Advanced)]
1508         [SRCategoryAttribute("CatLayout")]
1509         [SRDescriptionAttribute("ControlOnResizeDescr")]
1510         public event EventHandler Resize;
1511         //
1512         // 摘要:
1513         //     在 System.Windows.Forms.Control.RightToLeft 属性值更改时发生。
1514         [SRCategoryAttribute("CatPropertyChanged")]
1515         [SRDescriptionAttribute("ControlOnRightToLeftChangedDescr")]
1516         public event EventHandler RightToLeftChanged;
1517         //
1518         // 摘要:
1519         //     在 System.Windows.Forms.Control.Size 属性值更改时发生。
1520         [SRCategoryAttribute("CatPropertyChanged")]
1521         [SRDescriptionAttribute("ControlOnSizeChangedDescr")]
1522         public event EventHandler SizeChanged;
1523         //
1524         // 摘要:
1525         //     在控件样式更改时发生。
1526         [SRCategoryAttribute("CatBehavior")]
1527         [SRDescriptionAttribute("ControlOnStyleChangedDescr")]
1528         public event EventHandler StyleChanged;
1529         //
1530         // 摘要:
1531         //     系统颜色更改时发生。
1532         [SRCategoryAttribute("CatBehavior")]
1533         [SRDescriptionAttribute("ControlOnSystemColorsChangedDescr")]
1534         public event EventHandler SystemColorsChanged;
1535         //
1536         // 摘要:
1537         //     在 System.Windows.Forms.Control.TabIndex 属性值更改时发生。
1538         [SRCategoryAttribute("CatPropertyChanged")]
1539         [SRDescriptionAttribute("ControlOnTabIndexChangedDescr")]
1540         public event EventHandler TabIndexChanged;
1541         //
1542         // 摘要:
1543         //     在 System.Windows.Forms.Control.TabStop 属性值更改时发生。
1544         [SRCategoryAttribute("CatPropertyChanged")]
1545         [SRDescriptionAttribute("ControlOnTabStopChangedDescr")]
1546         public event EventHandler TabStopChanged;
1547         //
1548         // 摘要:
1549         //     在 System.Windows.Forms.Control.Text 属性值更改时发生。
1550         [SRCategoryAttribute("CatPropertyChanged")]
1551         [SRDescriptionAttribute("ControlOnTextChangedDescr")]
1552         public event EventHandler TextChanged;
1553         //
1554         // 摘要:
1555         //     在控件完成验证时发生。
1556         [SRCategoryAttribute("CatFocus")]
1557         [SRDescriptionAttribute("ControlOnValidatedDescr")]
1558         public event EventHandler Validated;
1559         //
1560         // 摘要:
1561         //     在控件正在验证时发生。
1562         [SRCategoryAttribute("CatFocus")]
1563         [SRDescriptionAttribute("ControlOnValidatingDescr")]
1564         public event CancelEventHandler Validating;
1565         //
1566         // 摘要:
1567         //     在 System.Windows.Forms.Control.Visible 属性值更改时发生。
1568         [SRCategoryAttribute("CatPropertyChanged")]
1569         [SRDescriptionAttribute("ControlOnVisibleChangedDescr")]
1570         public event EventHandler VisibleChanged;
1571 
1572         //
1573         // 摘要:
1574         //     检索包含指定句柄的控件。
1575         //
1576         // 参数:
1577         //   handle:
1578         //     要搜索的窗口句柄 (HWND)。
1579         //
1580         // 返回结果:
1581         //     System.Windows.Forms.Control,它表示与指定句柄关联的控件;如果找不到带有指定句柄的控件,就返回 null。
1582         [EditorBrowsable(EditorBrowsableState.Advanced)]
1583         public static Control FromChildHandle(IntPtr handle);
1584         //
1585         // 摘要:
1586         //     返回当前与指定句柄关联的控件。
1587         //
1588         // 参数:
1589         //   handle:
1590         //     要搜索的窗口句柄 (HWND)。
1591         //
1592         // 返回结果:
1593         //     一个 System.Windows.Forms.Control,它表示与指定句柄关联的控件;如果找不到带有指定句柄的控件,就返回 null。
1594         [EditorBrowsable(EditorBrowsableState.Advanced)]
1595         public static Control FromHandle(IntPtr handle);
1596         //
1597         // 摘要:
1598         //     确定 Caps Lock、Num Lock 或 Scroll Lock 键是否有效。
1599         //
1600         // 参数:
1601         //   keyVal:
1602         //     System.Windows.Forms.Keys 枚举的 Caps Lock、Num Lock 或 Scroll Lock 成员。
1603         //
1604         // 返回结果:
1605         //     如果指定的一个或多个键有效,则为 true;否则为 false。
1606         //
1607         // 异常:
1608         //   T:System.NotSupportedException:
1609         //     keyVal 参数指一个键,而不是 CAPS LOCK、NUM LOCK 或 SCROLL LOCK。
1610         public static bool IsKeyLocked(Keys keyVal);
1611         //
1612         // 摘要:
1613         //     搜索指定的字符串,以确定指定字符是否是分配给此控件的助记键字符。
1614         //
1615         // 参数:
1616         //   charCode:
1617         //     要测试的字符。
1618         //
1619         //   text:
1620         //     要搜索的字符串。
1621         //
1622         // 返回结果:
1623         //     如果 charCode 字符是分配给控件的助记键字符,则为 true;否则为 false。
1624         public static bool IsMnemonic(char charCode, string text);
1625         //
1626         // 摘要:
1627         //     向绑定到指定句柄的控件反映指定消息。
1628         //
1629         // 参数:
1630         //   hWnd:
1631         //     System.IntPtr 表示要反射消息的控件句柄。
1632         //
1633         //   m:
1634         //     System.Windows.Forms.Message 表示要反射的 Windows 消息。
1635         //
1636         // 返回结果:
1637         //     如果已反映消息,则为 true;否则为 false。
1638         [EditorBrowsable(EditorBrowsableState.Advanced)]
1639         protected static bool ReflectMessage(IntPtr hWnd, ref Message m);
1640         //
1641         // 摘要:
1642         //     在创建控件的基础句柄所在线程上异步执行指定委托。
1643         //
1644         // 参数:
1645         //   method:
1646         //     对不带参数的方法的委托。
1647         //
1648         // 返回结果:
1649         //     一个表示 System.Windows.Forms.Control.BeginInvoke(System.Delegate) 操作的结果的 System.IAsyncResult。
1650         //
1651         // 异常:
1652         //   T:System.InvalidOperationException:
1653         //     找不到适当的窗口句柄。
1654         [EditorBrowsable(EditorBrowsableState.Advanced)]
1655         public IAsyncResult BeginInvoke(Delegate method);
1656         //
1657         // 摘要:
1658         //     在创建控件的基础句柄所在线程上,用指定的参数异步执行指定委托。
1659         //
1660         // 参数:
1661         //   method:
1662         //     一个方法委托,它采用的参数的数量和类型与 args 参数中所包含的相同。
1663         //
1664         //   args:
1665         //     作为给定方法的参数传递的对象数组。 如果不需要参数,则可以为 null。
1666         //
1667         // 返回结果:
1668         //     一个表示 System.Windows.Forms.Control.BeginInvoke(System.Delegate) 操作的结果的 System.IAsyncResult。
1669         //
1670         // 异常:
1671         //   T:System.InvalidOperationException:
1672         //     找不到适当的窗口句柄。
1673         [EditorBrowsable(EditorBrowsableState.Advanced)]
1674         public IAsyncResult BeginInvoke(Delegate method, params object[] args);
1675         //
1676         // 摘要:
1677         //     将控件带到 Z 顺序的前面。
1678         public void BringToFront();
1679         //
1680         // 摘要:
1681         //     检索一个值,该值指示指定控件是否为一个控件的子控件。
1682         //
1683         // 参数:
1684         //   ctl:
1685         //     要计算的 System.Windows.Forms.Control。
1686         //
1687         // 返回结果:
1688         //     如果指定控件是控件的子控件,则为 true;否则为 false。
1689         public bool Contains(Control ctl);
1690         //
1691         // 摘要:
1692         //     强制创建可见控件,包括创建句柄和任何可见子控件。
1693         public void CreateControl();
1694         //
1695         // 摘要:
1696         //     为控件创建 System.Drawing.Graphics。
1697         //
1698         // 返回结果:
1699         //     控件的 System.Drawing.Graphics。
1700         public Graphics CreateGraphics();
1701         //
1702         // 摘要:
1703         //     开始拖放操作。
1704         //
1705         // 参数:
1706         //   data:
1707         //     要拖动的数据。
1708         //
1709         //   allowedEffects:
1710         //     System.Windows.Forms.DragDropEffects 值之一。
1711         //
1712         // 返回结果:
1713         //     System.Windows.Forms.DragDropEffects 枚举的值,它表示在拖放操作期间执行的最终效果。
1714         public DragDropEffects DoDragDrop(object data, DragDropEffects allowedEffects);
1715         //
1716         // 摘要:
1717         //     支持呈现到指定的位图。
1718         //
1719         // 参数:
1720         //   bitmap:
1721         //     要绘制到的位图。
1722         //
1723         //   targetBounds:
1724         //     呈现控件时的边界。
1725         public void DrawToBitmap(Bitmap bitmap, Rectangle targetBounds);
1726         //
1727         // 摘要:
1728         //     检索由传递的 System.IAsyncResult 表示的异步操作的返回值。
1729         //
1730         // 参数:
1731         //   asyncResult:
1732         //     System.IAsyncResult,表示特定的调用异步操作,在调用 System.Windows.Forms.Control.BeginInvoke(System.Delegate)
1733         //     时返回。
1734         //
1735         // 返回结果:
1736         //     由异步操作生成的 System.Object。
1737         //
1738         // 异常:
1739         //   T:System.ArgumentNullException:
1740         //     asyncResult 参数值为 null。
1741         //
1742         //   T:System.ArgumentException:
1743         //     asyncResult 对象不是由同一控件中的 System.Windows.Forms.Control.BeginInvoke(System.Delegate)
1744         //     方法的前一个调用创建的。
1745         [EditorBrowsable(EditorBrowsableState.Advanced)]
1746         public object EndInvoke(IAsyncResult asyncResult);
1747         //
1748         // 摘要:
1749         //     检索控件所在的窗体。
1750         //
1751         // 返回结果:
1752         //     控件所在的 System.Windows.Forms.Form。
1753         public Form FindForm();
1754         //
1755         // 摘要:
1756         //     为控件设置输入焦点。
1757         //
1758         // 返回结果:
1759         //     如果输入焦点请求成功,则为 true;否则为 false。
1760         [EditorBrowsable(EditorBrowsableState.Advanced)]
1761         public bool Focus();
1762         //
1763         // 摘要:
1764         //     检索位于指定坐标处的子控件。
1765         //
1766         // 参数:
1767         //   pt:
1768         //     一个 System.Drawing.Point,它包含的坐标指定您要在何处查找控件。 坐标相对于控件的工作区的左上角来表示。
1769         //
1770         // 返回结果:
1771         //     一个 System.Windows.Forms.Control,它表示位于指定点处的控件。
1772         public Control GetChildAtPoint(Point pt);
1773         //
1774         // 摘要:
1775         //     检索位于指定坐标的子控件,并且指定是否忽略特定类型的子控件。
1776         //
1777         // 参数:
1778         //   pt:
1779         //     一个 System.Drawing.Point,它包含的坐标指定您要在何处查找控件。 坐标相对于控件的工作区的左上角来表示。
1780         //
1781         //   skipValue:
1782         //     System.Windows.Forms.GetChildAtPointSkip 值之一,确定是否忽略特定类型的子控件。
1783         //
1784         // 返回结果:
1785         //     指定坐标处的子 System.Windows.Forms.Control。
1786         public Control GetChildAtPoint(Point pt, GetChildAtPointSkip skipValue);
1787         //
1788         // 摘要:
1789         //     沿着控件的父控件链向上,返回下一个 System.Windows.Forms.ContainerControl。
1790         //
1791         // 返回结果:
1792         //     一个 System.Windows.Forms.IContainerControl,表示 System.Windows.Forms.Control 的父级。
1793         public IContainerControl GetContainerControl();
1794         //
1795         // 摘要:
1796         //     按照子控件的 Tab 键顺序向前或向后检索下一个控件。
1797         //
1798         // 参数:
1799         //   ctl:
1800         //     从其上开始搜索的 System.Windows.Forms.Control。
1801         //
1802         //   forward:
1803         //     如果是 true,则按 Tab 键顺序向前搜索;如果是 false 则向后搜索。
1804         //
1805         // 返回结果:
1806         //     Tab 键顺序指定的下一个 System.Windows.Forms.Control。
1807         public Control GetNextControl(Control ctl, bool forward);
1808         //
1809         // 摘要:
1810         //     检索适合控件的矩形区域的大小。
1811         //
1812         // 参数:
1813         //   proposedSize:
1814         //     控件的自定义大小的区域。
1815         //
1816         // 返回结果:
1817         //     类型为 System.Drawing.Size 的有序对,表示矩形的宽度和高度。
1818         [EditorBrowsable(EditorBrowsableState.Advanced)]
1819         public virtual Size GetPreferredSize(Size proposedSize);
1820         //
1821         // 摘要:
1822         //     对用户隐藏控件。
1823         public void Hide();
1824         //
1825         // 摘要:
1826         //     使控件的整个图面无效并导致重绘控件。
1827         public void Invalidate();
1828         //
1829         // 摘要:
1830         //     使控件的指定区域无效(将其添加到控件的更新区域,下次绘制操作时将重新绘制更新区域),并向控件发送绘制消息。
1831         //
1832         // 参数:
1833         //   region:
1834         //     要使之无效的 System.Drawing.Region。
1835         public void Invalidate(Region region);
1836         //
1837         // 摘要:
1838         //     使控件的特定区域无效并向控件发送绘制消息。 还可以使分配给该控件的子控件无效。
1839         //
1840         // 参数:
1841         //   invalidateChildren:
1842         //     若要使控件的子控件无效,则为 true;否则为 false。
1843         public void Invalidate(bool invalidateChildren);
1844         //
1845         // 摘要:
1846         //     使控件的指定区域无效(将其添加到控件的更新区域,下次绘制操作时将重新绘制更新区域),并向控件发送绘制消息。
1847         //
1848         // 参数:
1849         //   rc:
1850         //     一个 System.Drawing.Rectangle,表示要使之无效的区域。
1851         public void Invalidate(Rectangle rc);
1852         //
1853         // 摘要:
1854         //     使控件的指定区域无效(将其添加到控件的更新区域,下次绘制操作时将重新绘制更新区域),并向控件发送绘制消息。 还可以使分配给该控件的子控件无效。
1855         //
1856         // 参数:
1857         //   region:
1858         //     要使之无效的 System.Drawing.Region。
1859         //
1860         //   invalidateChildren:
1861         //     若要使控件的子控件无效,则为 true;否则为 false。
1862         public void Invalidate(Region region, bool invalidateChildren);
1863         //
1864         // 摘要:
1865         //     使控件的指定区域无效(将其添加到控件的更新区域,下次绘制操作时将重新绘制更新区域),并向控件发送绘制消息。 还可以使分配给该控件的子控件无效。
1866         //
1867         // 参数:
1868         //   rc:
1869         //     一个 System.Drawing.Rectangle,表示要使之无效的区域。
1870         //
1871         //   invalidateChildren:
1872         //     若要使控件的子控件无效,则为 true;否则为 false。
1873         public void Invalidate(Rectangle rc, bool invalidateChildren);
1874         //
1875         // 摘要:
1876         //     在拥有此控件的基础窗口句柄的线程上执行指定的委托。
1877         //
1878         // 参数:
1879         //   method:
1880         //     包含要在控件的线程上下文中调用的方法的委托。
1881         //
1882         // 返回结果:
1883         //     正在被调用的委托的返回值,或者如果委托没有返回值,则为 null。
1884         public object Invoke(Delegate method);
1885         //
1886         // 摘要:
1887         //     在拥有控件的基础窗口句柄的线程上,用指定的参数列表执行指定委托。
1888         //
1889         // 参数:
1890         //   method:
1891         //     一个方法委托,它采用的参数的数量和类型与 args 参数中所包含的相同。
1892         //
1893         //   args:
1894         //     作为指定方法的参数传递的对象数组。 如果此方法没有参数,该参数可以是 null。
1895         //
1896         // 返回结果:
1897         //     System.Object,它包含正被调用的委托返回值;如果该委托没有返回值,则为 null。
1898         public object Invoke(Delegate method, params object[] args);
1899         //
1900         // 摘要:
1901         //     强制控件将布局逻辑应用于其所有子控件。
1902         [EditorBrowsable(EditorBrowsableState.Advanced)]
1903         public void PerformLayout();
1904         //
1905         // 摘要:
1906         //     强制控件将布局逻辑应用于其所有子控件。
1907         //
1908         // 参数:
1909         //   affectedControl:
1910         //     一个 System.Windows.Forms.Control,它表示最近更改的控件。
1911         //
1912         //   affectedProperty:
1913         //     此控件上最近更改的属性的名称。
1914         [EditorBrowsable(EditorBrowsableState.Advanced)]
1915         public void PerformLayout(Control affectedControl, string affectedProperty);
1916         //
1917         // 摘要:
1918         //     将指定屏幕点的位置计算成工作区坐标。
1919         //
1920         // 参数:
1921         //   p:
1922         //     要转换的屏幕坐标 System.Drawing.Point。
1923         //
1924         // 返回结果:
1925         //     一个 System.Drawing.Point,它表示转换后的 System.Drawing.Point、p(以工作区坐标表示)。
1926         public Point PointToClient(Point p);
1927         //
1928         // 摘要:
1929         //     将指定工作区点的位置计算成屏幕坐标。
1930         //
1931         // 参数:
1932         //   p:
1933         //     要转换的工作区坐标 System.Drawing.Point。
1934         //
1935         // 返回结果:
1936         //     一个 System.Drawing.Point,它表示转换后的 System.Drawing.Point、p(以屏幕坐标表示)。
1937         public Point PointToScreen(Point p);
1938         //
1939         // 摘要:
1940         //     在调度键盘或输入消息之前,在消息循环内对它们进行预处理。
1941         //
1942         // 参数:
1943         //   msg:
1944         //     一个 System.Windows.Forms.Message,表示要处理的消息。
1945         //
1946         // 返回结果:
1947         //     System.Windows.Forms.PreProcessControlState 值之一,具体取决于 System.Windows.Forms.Control.PreProcessMessage(System.Windows.Forms.Message@)
1948         //     是 true 还是 false,以及 System.Windows.Forms.Control.IsInputKey(System.Windows.Forms.Keys)
1949         //     或 System.Windows.Forms.Control.IsInputChar(System.Char) 是 true 还是 false。
1950         [EditorBrowsable(EditorBrowsableState.Advanced)]
1951         public PreProcessControlState PreProcessControlMessage(ref Message msg);
1952         //
1953         // 摘要:
1954         //     在调度键盘或输入消息之前,在消息循环内对它们进行预处理。
1955         //
1956         // 参数:
1957         //   msg:
1958         //     通过引用传递的 System.Windows.Forms.Message,它表示要处理的消息。 可能的值有 WM_KEYDOWN、WM_SYSKEYDOWN、WM_CHAR
1959         //     和 WM_SYSCHAR。
1960         //
1961         // 返回结果:
1962         //     如果消息已由控件处理,则为 true;否则为 false。
1963         public virtual bool PreProcessMessage(ref Message msg);
1964         //
1965         // 摘要:
1966         //     计算指定屏幕矩形的大小和位置(以工作区坐标表示)。
1967         //
1968         // 参数:
1969         //   r:
1970         //     要转换的屏幕坐标 System.Drawing.Rectangle。
1971         //
1972         // 返回结果:
1973         //     一个 System.Drawing.Rectangle,它表示转换后的 System.Drawing.Rectangle、r(以工作区坐标表示)。
1974         public Rectangle RectangleToClient(Rectangle r);
1975         //
1976         // 摘要:
1977         //     计算指定工作区矩形的大小和位置(以屏幕坐标表示)。
1978         //
1979         // 参数:
1980         //   r:
1981         //     要转换的工作区坐标 System.Drawing.Rectangle。
1982         //
1983         // 返回结果:
1984         //     一个 System.Drawing.Rectangle,它表示转换后的 System.Drawing.Rectangle、p(以屏幕坐标表示)。
1985         public Rectangle RectangleToScreen(Rectangle r);
1986         //
1987         // 摘要:
1988         //     强制控件使其工作区无效并立即重绘自己和任何子控件。
1989         public virtual void Refresh();
1990         //
1991         // 摘要:
1992         //     将 System.Windows.Forms.Control.BackColor 属性重置为其默认值。
1993         [EditorBrowsable(EditorBrowsableState.Never)]
1994         public virtual void ResetBackColor();
1995         //
1996         // 摘要:
1997         //     使绑定到 System.Windows.Forms.BindingSource 的控件重新读取列表中的所有项,并刷新这些项的显示值。
1998         [EditorBrowsable(EditorBrowsableState.Never)]
1999         public void ResetBindings();
2000         //
2001         // 摘要:
2002         //     将 System.Windows.Forms.Control.Cursor 属性重置为其默认值。
2003         [EditorBrowsable(EditorBrowsableState.Never)]
2004         public virtual void ResetCursor();
2005         //
2006         // 摘要:
2007         //     将 System.Windows.Forms.Control.Font 属性重置为其默认值。
2008         [EditorBrowsable(EditorBrowsableState.Never)]
2009         public virtual void ResetFont();
2010         //
2011         // 摘要:
2012         //     将 System.Windows.Forms.Control.ForeColor 属性重置为其默认值。
2013         [EditorBrowsable(EditorBrowsableState.Never)]
2014         public virtual void ResetForeColor();
2015         //
2016         // 摘要:
2017         //     将 System.Windows.Forms.Control.ImeMode 属性重置为其默认值。
2018         [EditorBrowsable(EditorBrowsableState.Never)]
2019         public void ResetImeMode();
2020         //
2021         // 摘要:
2022         //     将 System.Windows.Forms.Control.RightToLeft 属性重置为其默认值。
2023         [EditorBrowsable(EditorBrowsableState.Never)]
2024         public virtual void ResetRightToLeft();
2025         //
2026         // 摘要:
2027         //     将 System.Windows.Forms.Control.Text 属性重置为其默认值。
2028         public virtual void ResetText();
2029         //
2030         // 摘要:
2031         //     恢复正常的布局逻辑。
2032         public void ResumeLayout();
2033         //
2034         // 摘要:
2035         //     恢复正常的布局逻辑,可以选择强制对挂起的布局请求立即进行布局。
2036         //
2037         // 参数:
2038         //   performLayout:
2039         //     若要执行挂起的布局请求,则为 true;否则为 false。
2040         public void ResumeLayout(bool performLayout);
2041         //
2042         // 摘要:
2043         //     缩放控件和任何子控件。
2044         //
2045         // 参数:
2046         //   ratio:
2047         //     要用于缩放的比例。
2048         [EditorBrowsable(EditorBrowsableState.Never)]
2049         [Obsolete("This method has been deprecated. Use the Scale(SizeF ratio) method instead. http://go.microsoft.com/fwlink/?linkid=14202")]
2050         public void Scale(float ratio);
2051         //
2052         // 摘要:
2053         //     按指定的比例因子缩放控件和所有子控件。
2054         //
2055         // 参数:
2056         //   factor:
2057         //     一个包含水平和垂直比例因子的 System.Drawing.SizeF。
2058         [EditorBrowsable(EditorBrowsableState.Advanced)]
2059         public void Scale(SizeF factor);
2060         //
2061         // 摘要:
2062         //     缩放整个控件和任何子控件。
2063         //
2064         // 参数:
2065         //   dx:
2066         //     水平比例因子。
2067         //
2068         //   dy:
2069         //     垂直比例因子。
2070         [EditorBrowsable(EditorBrowsableState.Never)]
2071         [Obsolete("This method has been deprecated. Use the Scale(SizeF ratio) method instead. http://go.microsoft.com/fwlink/?linkid=14202")]
2072         public void Scale(float dx, float dy);
2073         //
2074         // 摘要:
2075         //     激活控件。
2076         public void Select();
2077         //
2078         // 摘要:
2079         //     激活下一个控件。
2080         //
2081         // 参数:
2082         //   ctl:
2083         //     从其上开始搜索的 System.Windows.Forms.Control。
2084         //
2085         //   forward:
2086         //     如果为 true 则在 Tab 键顺序中前移;如果为 false 则在 Tab 键顺序中后移。
2087         //
2088         //   tabStopOnly:
2089         //     true 表示忽略 System.Windows.Forms.Control.TabStop 属性设置为 false 的控件;false 表示不忽略。
2090         //
2091         //   nested:
2092         //     true 表示包括嵌套子控件(子控件的子级);false 表示不包括。
2093         //
2094         //   wrap:
2095         //     true 表示在到达最后一个控件之后从 Tab 键顺序中第一个控件开始继续搜索;false 表示不继续搜索。
2096         //
2097         // 返回结果:
2098         //     如果控件已激活,则为 true;否则为 false。
2099         public bool SelectNextControl(Control ctl, bool forward, bool tabStopOnly, bool nested, bool wrap);
2100         //
2101         // 摘要:
2102         //     将控件发送到 Z 顺序的后面。
2103         public void SendToBack();
2104         //
2105         // 摘要:
2106         //     将控件的边界设置为指定位置和大小。
2107         //
2108         // 参数:
2109         //   x:
2110         //     控件的新 System.Windows.Forms.Control.Left 属性值。
2111         //
2112         //   y:
2113         //     控件的新 System.Windows.Forms.Control.Top 属性值。
2114         //
2115         //   width:
2116         //     控件的新 System.Windows.Forms.Control.Width 属性值。
2117         //
2118         //   height:
2119         //     控件的新 System.Windows.Forms.Control.Height 属性值。
2120         public void SetBounds(int x, int y, int width, int height);
2121         //
2122         // 摘要:
2123         //     将控件的指定边界设置为指定位置和大小。
2124         //
2125         // 参数:
2126         //   x:
2127         //     控件的新 System.Windows.Forms.Control.Left 属性值。
2128         //
2129         //   y:
2130         //     控件的新 System.Windows.Forms.Control.Top 属性值。
2131         //
2132         //   width:
2133         //     控件的新 System.Windows.Forms.Control.Width 属性值。
2134         //
2135         //   height:
2136         //     控件的新 System.Windows.Forms.Control.Height 属性值。
2137         //
2138         //   specified:
2139         //     System.Windows.Forms.BoundsSpecified 值的按位组合。 对于任何未指定的参数,将使用当前值。
2140         public void SetBounds(int x, int y, int width, int height, BoundsSpecified specified);
2141         //
2142         // 摘要:
2143         //     向用户显示控件。
2144         public void Show();
2145         //
2146         // 摘要:
2147         //     临时挂起控件的布局逻辑。
2148         public void SuspendLayout();
2149         //
2150         // 摘要:
2151         //     使控件重绘其工作区内的无效区域。
2152         public void Update();
2153         //
2154         // 摘要:
2155         //     就指定的子控件的指定 System.Windows.Forms.AccessibleEvents 通知辅助功能客户端应用程序。
2156         //
2157         // 参数:
2158         //   accEvent:
2159         //     要将其通报给具有辅助功能的客户端应用程序的 System.Windows.Forms.AccessibleEvents。
2160         //
2161         //   objectID:
2162         //     System.Windows.Forms.AccessibleObject 的标识符。
2163         //
2164         //   childID:
2165         //     就该辅助性事件要通知的子 System.Windows.Forms.Control。
2166         [EditorBrowsable(EditorBrowsableState.Advanced)]
2167         protected void AccessibilityNotifyClients(AccessibleEvents accEvent, int objectID, int childID);
2168         //
2169         // 摘要:
2170         //     为该控件创建一个新的辅助功能对象。
2171         //
2172         // 返回结果:
2173         //     控件的新 System.Windows.Forms.AccessibleObject。
2174         [EditorBrowsable(EditorBrowsableState.Advanced)]
2175         protected virtual AccessibleObject CreateAccessibilityInstance();
2176         //
2177         // 摘要:
2178         //     为控件创建控件集合的新实例。
2179         //
2180         // 返回结果:
2181         //     分配给控件的 System.Windows.Forms.Control.ControlCollection 的新实例。
2182         [EditorBrowsable(EditorBrowsableState.Advanced)]
2183         protected virtual ControlCollection CreateControlsInstance();
2184         //
2185         // 摘要:
2186         //     为该控件创建句柄。
2187         //
2188         // 异常:
2189         //   T:System.ObjectDisposedException:
2190         //     对象处于被释放状态。
2191         [EditorBrowsable(EditorBrowsableState.Advanced)]
2192         protected virtual void CreateHandle();
2193         //
2194         // 摘要:
2195         //     向默认窗口过程发送指定消息。
2196         //
2197         // 参数:
2198         //   m:
2199         //     要处理的 WindowsSystem.Windows.Forms.Message。
2200         [EditorBrowsable(EditorBrowsableState.Advanced)]
2201         protected virtual void DefWndProc(ref Message m);
2202         //
2203         // 摘要:
2204         //     毁坏与该控件关联的句柄。
2205         [EditorBrowsable(EditorBrowsableState.Advanced)]
2206         protected virtual void DestroyHandle();
2207         //
2208         // 摘要:
2209         //     释放由 System.Windows.Forms.Control 和它的子控件占用的非托管资源,另外还可以释放托管资源。
2210         //
2211         // 参数:
2212         //   disposing:
2213         //     true 表示释放托管资源和非托管资源;false 表示仅释放非托管资源。
2214         protected override void Dispose(bool disposing);
2215         //
2216         // 摘要:
2217         //     检索指定的 System.Windows.Forms.AccessibleObject。
2218         //
2219         // 参数:
2220         //   objectId:
2221         //     一个 Int32,标识要检索的 System.Windows.Forms.AccessibleObject。
2222         //
2223         // 返回结果:
2224         //     一个 System.Windows.Forms.AccessibleObject。
2225         protected virtual AccessibleObject GetAccessibilityObjectById(int objectId);
2226         //
2227         // 摘要:
2228         //     检索一个值,该值指示当启用控件的 System.Windows.Forms.Control.AutoSize 属性时控件的行为方式。
2229         //
2230         // 返回结果:
2231         //     System.Windows.Forms.AutoSizeMode 值之一。
2232         protected AutoSizeMode GetAutoSizeMode();
2233         //
2234         // 摘要:
2235         //     检索缩放控件时的边界。
2236         //
2237         // 参数:
2238         //   bounds:
2239         //     指定要在显示器边界中检索的区域的 System.Drawing.Rectangle。
2240         //
2241         //   factor:
2242         //     控件边界的高度和宽度。
2243         //
2244         //   specified:
2245         //     System.Windows.Forms.BoundsSpecified 的一个值,它指定在定义控件的大小和位置时要使用的控件界限。
2246         //
2247         // 返回结果:
2248         //     一个表示缩放控件时的边界的 System.Drawing.Rectangle。
2249         [EditorBrowsable(EditorBrowsableState.Advanced)]
2250         protected virtual Rectangle GetScaledBounds(Rectangle bounds, SizeF factor, BoundsSpecified specified);
2251         //
2252         // 摘要:
2253         //     为控件检索指定控件样式位的值。
2254         //
2255         // 参数:
2256         //   flag:
2257         //     从中返回值的 System.Windows.Forms.ControlStyles 位。
2258         //
2259         // 返回结果:
2260         //     如果指定控件样式位设置为 true,则为 true;否则为 false。
2261         protected bool GetStyle(ControlStyles flag);
2262         //
2263         // 摘要:
2264         //     确定控件是否是顶级控件。
2265         //
2266         // 返回结果:
2267         //     如果该控件为顶级控件,则为 true;否则为 false。
2268         protected bool GetTopLevel();
2269         //
2270         // 摘要:
2271         //     在将控件添加到另一个容器之后调用。
2272         [EditorBrowsable(EditorBrowsableState.Advanced)]
2273         protected virtual void InitLayout();
2274         //
2275         // 摘要:
2276         //     为指定的控件引发 System.Windows.Forms.Control.GotFocus 事件。
2277         //
2278         // 参数:
2279         //   toInvoke:
2280         //     要将事件分配到的 System.Windows.Forms.Control。
2281         //
2282         //   e:
2283         //     一个 System.EventArgs,其中包含事件数据。
2284         [EditorBrowsable(EditorBrowsableState.Advanced)]
2285         protected void InvokeGotFocus(Control toInvoke, EventArgs e);
2286         //
2287         // 摘要:
2288         //     为指定的控件引发 System.Windows.Forms.Control.LostFocus 事件。
2289         //
2290         // 参数:
2291         //   toInvoke:
2292         //     要将事件分配到的 System.Windows.Forms.Control。
2293         //
2294         //   e:
2295         //     一个 System.EventArgs,其中包含事件数据。
2296         [EditorBrowsable(EditorBrowsableState.Advanced)]
2297         protected void InvokeLostFocus(Control toInvoke, EventArgs e);
2298         //
2299         // 摘要:
2300         //     为指定的控件引发 System.Windows.Forms.Control.Click 事件。
2301         //
2302         // 参数:
2303         //   toInvoke:
2304         //     要为之分配 System.Windows.Forms.Control.Click 事件的 System.Windows.Forms.Control。
2305         //
2306         //   e:
2307         //     一个 System.EventArgs,其中包含事件数据。
2308         [EditorBrowsable(EditorBrowsableState.Advanced)]
2309         protected void InvokeOnClick(Control toInvoke, EventArgs e);
2310         //
2311         // 摘要:
2312         //     为指定的控件引发 System.Windows.Forms.Control.Paint 事件。
2313         //
2314         // 参数:
2315         //   c:
2316         //     要为之分配 System.Windows.Forms.Control.Paint 事件的 System.Windows.Forms.Control。
2317         //
2318         //   e:
2319         //     一个 System.Windows.Forms.PaintEventArgs,其中包含事件数据。
2320         protected void InvokePaint(Control c, PaintEventArgs e);
2321         //
2322         // 摘要:
2323         //     为指定的控件引发 PaintBackground 事件。
2324         //
2325         // 参数:
2326         //   c:
2327         //     要为之分配 System.Windows.Forms.Control.Paint 事件的 System.Windows.Forms.Control。
2328         //
2329         //   e:
2330         //     一个 System.Windows.Forms.PaintEventArgs,其中包含事件数据。
2331         protected void InvokePaintBackground(Control c, PaintEventArgs e);
2332         //
2333         // 摘要:
2334         //     确定一个字符是否是控件可识别的输入字符。
2335         //
2336         // 参数:
2337         //   charCode:
2338         //     要测试的字符。
2339         //
2340         // 返回结果:
2341         //     如果字符应直接发送到控件且不必经过预处理,则为 true;否则为 false。
2342         protected virtual bool IsInputChar(char charCode);
2343         //
2344         // 摘要:
2345         //     确定指定的键是常规输入键还是需要预处理的特殊键。
2346         //
2347         // 参数:
2348         //   keyData:
2349         //     System.Windows.Forms.Keys 值之一。
2350         //
2351         // 返回结果:
2352         //     如果指定的键是常规输入键,则为 true;否则为 false。
2353         protected virtual bool IsInputKey(Keys keyData);
2354         //
2355         // 摘要:
2356         //     引发 System.Windows.Forms.Control.Invalidated 事件,其中带有要使之无效的控件的指定区域。
2357         //
2358         // 参数:
2359         //   invalidatedArea:
2360         //     一个表示要使之无效的区域的 System.Drawing.Rectangle。
2361         [EditorBrowsable(EditorBrowsableState.Advanced)]
2362         protected virtual void NotifyInvalidate(Rectangle invalidatedArea);
2363         //
2364         // 摘要:
2365         //     引发 System.Windows.Forms.Control.AutoSizeChanged 事件。
2366         //
2367         // 参数:
2368         //   e:
2369         //     一个 System.EventArgs,其中包含事件数据。
2370         protected virtual void OnAutoSizeChanged(EventArgs e);
2371         //
2372         // 摘要:
2373         //     引发 System.Windows.Forms.Control.BackColorChanged 事件。
2374         //
2375         // 参数:
2376         //   e:
2377         //     一个 System.EventArgs,其中包含事件数据。
2378         [EditorBrowsable(EditorBrowsableState.Advanced)]
2379         protected virtual void OnBackColorChanged(EventArgs e);
2380         //
2381         // 摘要:
2382         //     引发 System.Windows.Forms.Control.BackgroundImageChanged 事件。
2383         //
2384         // 参数:
2385         //   e:
2386         //     一个 System.EventArgs,其中包含事件数据。
2387         [EditorBrowsable(EditorBrowsableState.Advanced)]
2388         protected virtual void OnBackgroundImageChanged(EventArgs e);
2389         //
2390         // 摘要:
2391         //     引发 System.Windows.Forms.Control.BackgroundImageLayoutChanged 事件。
2392         //
2393         // 参数:
2394         //   e:
2395         //     一个 System.EventArgs,其中包含事件数据。
2396         [EditorBrowsable(EditorBrowsableState.Advanced)]
2397         protected virtual void OnBackgroundImageLayoutChanged(EventArgs e);
2398         //
2399         // 摘要:
2400         //     引发 System.Windows.Forms.Control.BindingContextChanged 事件。
2401         //
2402         // 参数:
2403         //   e:
2404         //     一个 System.EventArgs,其中包含事件数据。
2405         [EditorBrowsable(EditorBrowsableState.Advanced)]
2406         protected virtual void OnBindingContextChanged(EventArgs e);
2407         //
2408         // 摘要:
2409         //     引发 System.Windows.Forms.Control.CausesValidationChanged 事件。
2410         //
2411         // 参数:
2412         //   e:
2413         //     一个 System.EventArgs,其中包含事件数据。
2414         [EditorBrowsable(EditorBrowsableState.Advanced)]
2415         protected virtual void OnCausesValidationChanged(EventArgs e);
2416         //
2417         // 摘要:
2418         //     引发 System.Windows.Forms.Control.ChangeUICues 事件。
2419         //
2420         // 参数:
2421         //   e:
2422         //     包含事件数据的 System.Windows.Forms.UICuesEventArgs。
2423         [EditorBrowsable(EditorBrowsableState.Advanced)]
2424         protected virtual void OnChangeUICues(UICuesEventArgs e);
2425         //
2426         // 摘要:
2427         //     引发 System.Windows.Forms.Control.Click 事件。
2428         //
2429         // 参数:
2430         //   e:
2431         //     一个 System.EventArgs,其中包含事件数据。
2432         [EditorBrowsable(EditorBrowsableState.Advanced)]
2433         protected virtual void OnClick(EventArgs e);
2434         //
2435         // 摘要:
2436         //     引发 System.Windows.Forms.Control.ClientSizeChanged 事件。
2437         //
2438         // 参数:
2439         //   e:
2440         //     一个 System.EventArgs,其中包含事件数据。
2441         [EditorBrowsable(EditorBrowsableState.Advanced)]
2442         protected virtual void OnClientSizeChanged(EventArgs e);
2443         //
2444         // 摘要:
2445         //     引发 System.Windows.Forms.Control.ContextMenuChanged 事件。
2446         //
2447         // 参数:
2448         //   e:
2449         //     一个 System.EventArgs,其中包含事件数据。
2450         [EditorBrowsable(EditorBrowsableState.Advanced)]
2451         protected virtual void OnContextMenuChanged(EventArgs e);
2452         //
2453         // 摘要:
2454         //     引发 System.Windows.Forms.Control.ContextMenuStripChanged 事件。
2455         //
2456         // 参数:
2457         //   e:
2458         //     一个 System.EventArgs,其中包含事件数据。
2459         [EditorBrowsable(EditorBrowsableState.Advanced)]
2460         protected virtual void OnContextMenuStripChanged(EventArgs e);
2461         //
2462         // 摘要:
2463         //     引发 System.Windows.Forms.Control.ControlAdded 事件。
2464         //
2465         // 参数:
2466         //   e:
2467         //     包含事件数据的 System.Windows.Forms.ControlEventArgs。
2468         [EditorBrowsable(EditorBrowsableState.Advanced)]
2469         protected virtual void OnControlAdded(ControlEventArgs e);
2470         //
2471         // 摘要:
2472         //     引发 System.Windows.Forms.Control.ControlRemoved 事件。
2473         //
2474         // 参数:
2475         //   e:
2476         //     包含事件数据的 System.Windows.Forms.ControlEventArgs。
2477         [EditorBrowsable(EditorBrowsableState.Advanced)]
2478         protected virtual void OnControlRemoved(ControlEventArgs e);
2479         //
2480         // 摘要:
2481         //     引发 System.Windows.Forms.Control.CreateControl 方法。
2482         [EditorBrowsable(EditorBrowsableState.Advanced)]
2483         protected virtual void OnCreateControl();
2484         //
2485         // 摘要:
2486         //     引发 System.Windows.Forms.Control.CursorChanged 事件。
2487         //
2488         // 参数:
2489         //   e:
2490         //     一个 System.EventArgs,其中包含事件数据。
2491         [EditorBrowsable(EditorBrowsableState.Advanced)]
2492         protected virtual void OnCursorChanged(EventArgs e);
2493         //
2494         // 摘要:
2495         //     引发 System.Windows.Forms.Control.DockChanged 事件。
2496         //
2497         // 参数:
2498         //   e:
2499         //     一个 System.EventArgs,其中包含事件数据。
2500         [EditorBrowsable(EditorBrowsableState.Advanced)]
2501         protected virtual void OnDockChanged(EventArgs e);
2502         //
2503         // 摘要:
2504         //     引发 System.Windows.Forms.Control.DoubleClick 事件。
2505         //
2506         // 参数:
2507         //   e:
2508         //     一个 System.EventArgs,其中包含事件数据。
2509         [EditorBrowsable(EditorBrowsableState.Advanced)]
2510         protected virtual void OnDoubleClick(EventArgs e);
2511         //
2512         // 摘要:
2513         //     引发 System.Windows.Forms.Control.DragDrop 事件。
2514         //
2515         // 参数:
2516         //   drgevent:
2517         //     包含事件数据的 System.Windows.Forms.DragEventArgs。
2518         [EditorBrowsable(EditorBrowsableState.Advanced)]
2519         protected virtual void OnDragDrop(DragEventArgs drgevent);
2520         //
2521         // 摘要:
2522         //     引发 System.Windows.Forms.Control.DragEnter 事件。
2523         //
2524         // 参数:
2525         //   drgevent:
2526         //     包含事件数据的 System.Windows.Forms.DragEventArgs。
2527         [EditorBrowsable(EditorBrowsableState.Advanced)]
2528         protected virtual void OnDragEnter(DragEventArgs drgevent);
2529         //
2530         // 摘要:
2531         //     引发 System.Windows.Forms.Control.DragLeave 事件。
2532         //
2533         // 参数:
2534         //   e:
2535         //     一个 System.EventArgs,其中包含事件数据。
2536         [EditorBrowsable(EditorBrowsableState.Advanced)]
2537         protected virtual void OnDragLeave(EventArgs e);
2538         //
2539         // 摘要:
2540         //     引发 System.Windows.Forms.Control.DragOver 事件。
2541         //
2542         // 参数:
2543         //   drgevent:
2544         //     包含事件数据的 System.Windows.Forms.DragEventArgs。
2545         [EditorBrowsable(EditorBrowsableState.Advanced)]
2546         protected virtual void OnDragOver(DragEventArgs drgevent);
2547         //
2548         // 摘要:
2549         //     引发 System.Windows.Forms.Control.EnabledChanged 事件。
2550         //
2551         // 参数:
2552         //   e:
2553         //     一个 System.EventArgs,其中包含事件数据。
2554         [EditorBrowsable(EditorBrowsableState.Advanced)]
2555         protected virtual void OnEnabledChanged(EventArgs e);
2556         //
2557         // 摘要:
2558         //     引发 System.Windows.Forms.Control.Enter 事件。
2559         //
2560         // 参数:
2561         //   e:
2562         //     一个 System.EventArgs,其中包含事件数据。
2563         [EditorBrowsable(EditorBrowsableState.Advanced)]
2564         protected virtual void OnEnter(EventArgs e);
2565         //
2566         // 摘要:
2567         //     引发 System.Windows.Forms.Control.FontChanged 事件。
2568         //
2569         // 参数:
2570         //   e:
2571         //     一个 System.EventArgs,其中包含事件数据。
2572         [EditorBrowsable(EditorBrowsableState.Advanced)]
2573         protected virtual void OnFontChanged(EventArgs e);
2574         //
2575         // 摘要:
2576         //     引发 System.Windows.Forms.Control.ForeColorChanged 事件。
2577         //
2578         // 参数:
2579         //   e:
2580         //     一个 System.EventArgs,其中包含事件数据。
2581         [EditorBrowsable(EditorBrowsableState.Advanced)]
2582         protected virtual void OnForeColorChanged(EventArgs e);
2583         //
2584         // 摘要:
2585         //     引发 System.Windows.Forms.Control.GiveFeedback 事件。
2586         //
2587         // 参数:
2588         //   gfbevent:
2589         //     包含事件数据的 System.Windows.Forms.GiveFeedbackEventArgs。
2590         [EditorBrowsable(EditorBrowsableState.Advanced)]
2591         protected virtual void OnGiveFeedback(GiveFeedbackEventArgs gfbevent);
2592         //
2593         // 摘要:
2594         //     引发 System.Windows.Forms.Control.GotFocus 事件。
2595         //
2596         // 参数:
2597         //   e:
2598         //     一个 System.EventArgs,其中包含事件数据。
2599         [EditorBrowsable(EditorBrowsableState.Advanced)]
2600         protected virtual void OnGotFocus(EventArgs e);
2601         //
2602         // 摘要:
2603         //     引发 System.Windows.Forms.Control.HandleCreated 事件。
2604         //
2605         // 参数:
2606         //   e:
2607         //     一个 System.EventArgs,其中包含事件数据。
2608         [EditorBrowsable(EditorBrowsableState.Advanced)]
2609         protected virtual void OnHandleCreated(EventArgs e);
2610         //
2611         // 摘要:
2612         //     引发 System.Windows.Forms.Control.HandleDestroyed 事件。
2613         //
2614         // 参数:
2615         //   e:
2616         //     一个 System.EventArgs,其中包含事件数据。
2617         [EditorBrowsable(EditorBrowsableState.Advanced)]
2618         protected virtual void OnHandleDestroyed(EventArgs e);
2619         //
2620         // 摘要:
2621         //     引发 System.Windows.Forms.Control.HelpRequested 事件。
2622         //
2623         // 参数:
2624         //   hevent:
2625         //     包含事件数据的 System.Windows.Forms.HelpEventArgs。
2626         [EditorBrowsable(EditorBrowsableState.Advanced)]
2627         protected virtual void OnHelpRequested(HelpEventArgs hevent);
2628         //
2629         // 摘要:
2630         //     引发 System.Windows.Forms.Control.ImeModeChanged 事件。
2631         //
2632         // 参数:
2633         //   e:
2634         //     一个 System.EventArgs,其中包含事件数据。
2635         protected virtual void OnImeModeChanged(EventArgs e);
2636         //
2637         // 摘要:
2638         //     引发 System.Windows.Forms.Control.Invalidated 事件。
2639         //
2640         // 参数:
2641         //   e:
2642         //     一个 System.Windows.Forms.InvalidateEventArgs,其中包含事件数据。
2643         [EditorBrowsable(EditorBrowsableState.Advanced)]
2644         protected virtual void OnInvalidated(InvalidateEventArgs e);
2645         //
2646         // 摘要:
2647         //     引发 System.Windows.Forms.Control.KeyDown 事件。
2648         //
2649         // 参数:
2650         //   e:
2651         //     包含事件数据的 System.Windows.Forms.KeyEventArgs。
2652         [EditorBrowsable(EditorBrowsableState.Advanced)]
2653         protected virtual void OnKeyDown(KeyEventArgs e);
2654         //
2655         // 摘要:
2656         //     引发 System.Windows.Forms.Control.KeyPress 事件。
2657         //
2658         // 参数:
2659         //   e:
2660         //     包含事件数据的 System.Windows.Forms.KeyPressEventArgs。
2661         [EditorBrowsable(EditorBrowsableState.Advanced)]
2662         protected virtual void OnKeyPress(KeyPressEventArgs e);
2663         //
2664         // 摘要:
2665         //     引发 System.Windows.Forms.Control.KeyUp 事件。
2666         //
2667         // 参数:
2668         //   e:
2669         //     包含事件数据的 System.Windows.Forms.KeyEventArgs。
2670         [EditorBrowsable(EditorBrowsableState.Advanced)]
2671         protected virtual void OnKeyUp(KeyEventArgs e);
2672         //
2673         // 摘要:
2674         //     引发 System.Windows.Forms.Control.Layout 事件。
2675         //
2676         // 参数:
2677         //   levent:
2678         //     包含事件数据的 System.Windows.Forms.LayoutEventArgs。
2679         [EditorBrowsable(EditorBrowsableState.Advanced)]
2680         protected virtual void OnLayout(LayoutEventArgs levent);
2681         //
2682         // 摘要:
2683         //     引发 System.Windows.Forms.Control.Leave 事件。
2684         //
2685         // 参数:
2686         //   e:
2687         //     一个 System.EventArgs,其中包含事件数据。
2688         [EditorBrowsable(EditorBrowsableState.Advanced)]
2689         protected virtual void OnLeave(EventArgs e);
2690         //
2691         // 摘要:
2692         //     引发 System.Windows.Forms.Control.LocationChanged 事件。
2693         //
2694         // 参数:
2695         //   e:
2696         //     一个 System.EventArgs,其中包含事件数据。
2697         [EditorBrowsable(EditorBrowsableState.Advanced)]
2698         protected virtual void OnLocationChanged(EventArgs e);
2699         //
2700         // 摘要:
2701         //     引发 System.Windows.Forms.Control.LostFocus 事件。
2702         //
2703         // 参数:
2704         //   e:
2705         //     一个 System.EventArgs,其中包含事件数据。
2706         [EditorBrowsable(EditorBrowsableState.Advanced)]
2707         protected virtual void OnLostFocus(EventArgs e);
2708         //
2709         // 摘要:
2710         //     引发 System.Windows.Forms.Control.MarginChanged 事件。
2711         //
2712         // 参数:
2713         //   e:
2714         //     包含事件数据的 System.EventArgs。
2715         protected virtual void OnMarginChanged(EventArgs e);
2716         //
2717         // 摘要:
2718         //     引发 System.Windows.Forms.Control.MouseCaptureChanged 事件。
2719         //
2720         // 参数:
2721         //   e:
2722         //     一个 System.EventArgs,其中包含事件数据。
2723         [EditorBrowsable(EditorBrowsableState.Advanced)]
2724         protected virtual void OnMouseCaptureChanged(EventArgs e);
2725         //
2726         // 摘要:
2727         //     引发 System.Windows.Forms.Control.MouseClick 事件。
2728         //
2729         // 参数:
2730         //   e:
2731         //     一个 System.Windows.Forms.MouseEventArgs,其中包含事件数据。
2732         [EditorBrowsable(EditorBrowsableState.Advanced)]
2733         protected virtual void OnMouseClick(MouseEventArgs e);
2734         //
2735         // 摘要:
2736         //     引发 System.Windows.Forms.Control.MouseDoubleClick 事件。
2737         //
2738         // 参数:
2739         //   e:
2740         //     一个 System.Windows.Forms.MouseEventArgs,其中包含事件数据。
2741         [EditorBrowsable(EditorBrowsableState.Advanced)]
2742         protected virtual void OnMouseDoubleClick(MouseEventArgs e);
2743         //
2744         // 摘要:
2745         //     引发 System.Windows.Forms.Control.MouseDown 事件。
2746         //
2747         // 参数:
2748         //   e:
2749         //     包含事件数据的 System.Windows.Forms.MouseEventArgs。
2750         [EditorBrowsable(EditorBrowsableState.Advanced)]
2751         protected virtual void OnMouseDown(MouseEventArgs e);
2752         //
2753         // 摘要:
2754         //     引发 System.Windows.Forms.Control.MouseEnter 事件。
2755         //
2756         // 参数:
2757         //   e:
2758         //     一个 System.EventArgs,其中包含事件数据。
2759         [EditorBrowsable(EditorBrowsableState.Advanced)]
2760         protected virtual void OnMouseEnter(EventArgs e);
2761         //
2762         // 摘要:
2763         //     引发 System.Windows.Forms.Control.MouseHover 事件。
2764         //
2765         // 参数:
2766         //   e:
2767         //     一个 System.EventArgs,其中包含事件数据。
2768         [EditorBrowsable(EditorBrowsableState.Advanced)]
2769         protected virtual void OnMouseHover(EventArgs e);
2770         //
2771         // 摘要:
2772         //     引发 System.Windows.Forms.Control.MouseLeave 事件。
2773         //
2774         // 参数:
2775         //   e:
2776         //     一个 System.EventArgs,其中包含事件数据。
2777         [EditorBrowsable(EditorBrowsableState.Advanced)]
2778         protected virtual void OnMouseLeave(EventArgs e);
2779         //
2780         // 摘要:
2781         //     引发 System.Windows.Forms.Control.MouseMove 事件。
2782         //
2783         // 参数:
2784         //   e:
2785         //     包含事件数据的 System.Windows.Forms.MouseEventArgs。
2786         [EditorBrowsable(EditorBrowsableState.Advanced)]
2787         protected virtual void OnMouseMove(MouseEventArgs e);
2788         //
2789         // 摘要:
2790         //     引发 System.Windows.Forms.Control.MouseUp 事件。
2791         //
2792         // 参数:
2793         //   e:
2794         //     包含事件数据的 System.Windows.Forms.MouseEventArgs。
2795         [EditorBrowsable(EditorBrowsableState.Advanced)]
2796         protected virtual void OnMouseUp(MouseEventArgs e);
2797         //
2798         // 摘要:
2799         //     引发 System.Windows.Forms.Control.MouseWheel 事件。
2800         //
2801         // 参数:
2802         //   e:
2803         //     包含事件数据的 System.Windows.Forms.MouseEventArgs。
2804         [EditorBrowsable(EditorBrowsableState.Advanced)]
2805         protected virtual void OnMouseWheel(MouseEventArgs e);
2806         //
2807         // 摘要:
2808         //     引发 System.Windows.Forms.Control.Move 事件。
2809         //
2810         // 参数:
2811         //   e:
2812         //     一个 System.EventArgs,其中包含事件数据。
2813         [EditorBrowsable(EditorBrowsableState.Advanced)]
2814         protected virtual void OnMove(EventArgs e);
2815         //
2816         // 摘要:
2817         //     向控件通知 Windows 消息。
2818         //
2819         // 参数:
2820         //   m:
2821         //     一个 System.Windows.Forms.Message,它表示 Windows 消息。
2822         [EditorBrowsable(EditorBrowsableState.Advanced)]
2823         protected virtual void OnNotifyMessage(Message m);
2824         //
2825         // 摘要:
2826         //     引发 System.Windows.Forms.Control.PaddingChanged 事件。
2827         //
2828         // 参数:
2829         //   e:
2830         //     包含事件数据的 System.EventArgs。
2831         protected virtual void OnPaddingChanged(EventArgs e);
2832         //
2833         // 摘要:
2834         //     引发 System.Windows.Forms.Control.Paint 事件。
2835         //
2836         // 参数:
2837         //   e:
2838         //     包含事件数据的 System.Windows.Forms.PaintEventArgs。
2839         [EditorBrowsable(EditorBrowsableState.Advanced)]
2840         protected virtual void OnPaint(PaintEventArgs e);
2841         //
2842         // 摘要:
2843         //     绘制控件的背景。
2844         //
2845         // 参数:
2846         //   pevent:
2847         //     包含有关要绘制的控件的信息的 System.Windows.Forms.PaintEventArgs。
2848         [EditorBrowsable(EditorBrowsableState.Advanced)]
2849         protected virtual void OnPaintBackground(PaintEventArgs pevent);
2850         //
2851         // 摘要:
2852         //     当控件容器的 System.Windows.Forms.Control.BackColor 属性值更改时,将引发 System.Windows.Forms.Control.BackColorChanged
2853         //     事件。
2854         //
2855         // 参数:
2856         //   e:
2857         //     一个 System.EventArgs,其中包含事件数据。
2858         [EditorBrowsable(EditorBrowsableState.Advanced)]
2859         protected virtual void OnParentBackColorChanged(EventArgs e);
2860         //
2861         // 摘要:
2862         //     当控件容器的 System.Windows.Forms.Control.BackgroundImage 属性值更改时,将引发 System.Windows.Forms.Control.BackgroundImageChanged
2863         //     事件。
2864         //
2865         // 参数:
2866         //   e:
2867         //     一个 System.EventArgs,其中包含事件数据。
2868         [EditorBrowsable(EditorBrowsableState.Advanced)]
2869         protected virtual void OnParentBackgroundImageChanged(EventArgs e);
2870         //
2871         // 摘要:
2872         //     当控件容器的 System.Windows.Forms.Control.BindingContext 属性值更改时,将引发 System.Windows.Forms.Control.BindingContextChanged
2873         //     事件。
2874         //
2875         // 参数:
2876         //   e:
2877         //     一个 System.EventArgs,其中包含事件数据。
2878         [EditorBrowsable(EditorBrowsableState.Advanced)]
2879         protected virtual void OnParentBindingContextChanged(EventArgs e);
2880         //
2881         // 摘要:
2882         //     引发 System.Windows.Forms.Control.ParentChanged 事件。
2883         //
2884         // 参数:
2885         //   e:
2886         //     一个 System.EventArgs,其中包含事件数据。
2887         [EditorBrowsable(EditorBrowsableState.Advanced)]
2888         protected virtual void OnParentChanged(EventArgs e);
2889         //
2890         // 摘要:
2891         //     引发 System.Windows.Forms.Control.CursorChanged 事件。
2892         //
2893         // 参数:
2894         //   e:
2895         //     一个 System.EventArgs,其中包含事件数据。
2896         [EditorBrowsable(EditorBrowsableState.Advanced)]
2897         protected virtual void OnParentCursorChanged(EventArgs e);
2898         //
2899         // 摘要:
2900         //     当控件容器的 System.Windows.Forms.Control.Enabled 属性值更改时,将引发 System.Windows.Forms.Control.EnabledChanged
2901         //     事件。
2902         //
2903         // 参数:
2904         //   e:
2905         //     一个 System.EventArgs,其中包含事件数据。
2906         [EditorBrowsable(EditorBrowsableState.Advanced)]
2907         protected virtual void OnParentEnabledChanged(EventArgs e);
2908         //
2909         // 摘要:
2910         //     当控件容器的 System.Windows.Forms.Control.Font 属性值更改时,将引发 System.Windows.Forms.Control.FontChanged
2911         //     事件。
2912         //
2913         // 参数:
2914         //   e:
2915         //     一个 System.EventArgs,其中包含事件数据。
2916         [EditorBrowsable(EditorBrowsableState.Advanced)]
2917         protected virtual void OnParentFontChanged(EventArgs e);
2918         //
2919         // 摘要:
2920         //     当控件容器的 System.Windows.Forms.Control.ForeColor 属性值更改时,将引发 System.Windows.Forms.Control.ForeColorChanged
2921         //     事件。
2922         //
2923         // 参数:
2924         //   e:
2925         //     一个 System.EventArgs,其中包含事件数据。
2926         [EditorBrowsable(EditorBrowsableState.Advanced)]
2927         protected virtual void OnParentForeColorChanged(EventArgs e);
2928         //
2929         // 摘要:
2930         //     当控件容器的 System.Windows.Forms.Control.RightToLeft 属性值更改时,将引发 System.Windows.Forms.Control.RightToLeftChanged
2931         //     事件。
2932         //
2933         // 参数:
2934         //   e:
2935         //     一个 System.EventArgs,其中包含事件数据。
2936         [EditorBrowsable(EditorBrowsableState.Advanced)]
2937         protected virtual void OnParentRightToLeftChanged(EventArgs e);
2938         //
2939         // 摘要:
2940         //     当控件容器的 System.Windows.Forms.Control.Visible 属性值更改时,将引发 System.Windows.Forms.Control.VisibleChanged
2941         //     事件。
2942         //
2943         // 参数:
2944         //   e:
2945         //     一个 System.EventArgs,其中包含事件数据。
2946         [EditorBrowsable(EditorBrowsableState.Advanced)]
2947         protected virtual void OnParentVisibleChanged(EventArgs e);
2948         //
2949         // 摘要:
2950         //     引发 System.Windows.Forms.Control.PreviewKeyDown 事件。
2951         //
2952         // 参数:
2953         //   e:
2954         //     包含事件数据的 System.Windows.Forms.PreviewKeyDownEventArgs。
2955         [EditorBrowsable(EditorBrowsableState.Advanced)]
2956         protected virtual void OnPreviewKeyDown(PreviewKeyDownEventArgs e);
2957         //
2958         // 摘要:
2959         //     引发 System.Windows.Forms.Control.Paint 事件。
2960         //
2961         // 参数:
2962         //   e:
2963         //     包含事件数据的 System.Windows.Forms.PaintEventArgs。
2964         //
2965         // 异常:
2966         //   T:System.ArgumentNullException:
2967         //     e 参数为 null。
2968         [EditorBrowsable(EditorBrowsableState.Advanced)]
2969         protected virtual void OnPrint(PaintEventArgs e);
2970         //
2971         // 摘要:
2972         //     引发 System.Windows.Forms.Control.QueryContinueDrag 事件。
2973         //
2974         // 参数:
2975         //   qcdevent:
2976         //     包含事件数据的 System.Windows.Forms.QueryContinueDragEventArgs。
2977         [EditorBrowsable(EditorBrowsableState.Advanced)]
2978         protected virtual void OnQueryContinueDrag(QueryContinueDragEventArgs qcdevent);
2979         //
2980         // 摘要:
2981         //     引发 System.Windows.Forms.Control.RegionChanged 事件。
2982         //
2983         // 参数:
2984         //   e:
2985         //     一个 System.EventArgs,其中包含事件数据。
2986         [EditorBrowsable(EditorBrowsableState.Advanced)]
2987         protected virtual void OnRegionChanged(EventArgs e);
2988         //
2989         // 摘要:
2990         //     引发 System.Windows.Forms.Control.Resize 事件。
2991         //
2992         // 参数:
2993         //   e:
2994         //     一个 System.EventArgs,其中包含事件数据。
2995         [EditorBrowsable(EditorBrowsableState.Advanced)]
2996         protected virtual void OnResize(EventArgs e);
2997         //
2998         // 摘要:
2999         //     引发 System.Windows.Forms.Control.RightToLeftChanged 事件。
3000         //
3001         // 参数:
3002         //   e:
3003         //     一个 System.EventArgs,其中包含事件数据。
3004         [EditorBrowsable(EditorBrowsableState.Advanced)]
3005         protected virtual void OnRightToLeftChanged(EventArgs e);
3006         //
3007         // 摘要:
3008         //     引发 System.Windows.Forms.Control.SizeChanged 事件。
3009         //
3010         // 参数:
3011         //   e:
3012         //     一个 System.EventArgs,其中包含事件数据。
3013         [EditorBrowsable(EditorBrowsableState.Advanced)]
3014         protected virtual void OnSizeChanged(EventArgs e);
3015         //
3016         // 摘要:
3017         //     引发 System.Windows.Forms.Control.StyleChanged 事件。
3018         //
3019         // 参数:
3020         //   e:
3021         //     一个 System.EventArgs,其中包含事件数据。
3022         [EditorBrowsable(EditorBrowsableState.Advanced)]
3023         protected virtual void OnStyleChanged(EventArgs e);
3024         //
3025         // 摘要:
3026         //     引发 System.Windows.Forms.Control.SystemColorsChanged 事件。
3027         //
3028         // 参数:
3029         //   e:
3030         //     一个 System.EventArgs,其中包含事件数据。
3031         [EditorBrowsable(EditorBrowsableState.Advanced)]
3032         protected virtual void OnSystemColorsChanged(EventArgs e);
3033         //
3034         // 摘要:
3035         //     引发 System.Windows.Forms.Control.TabIndexChanged 事件。
3036         //
3037         // 参数:
3038         //   e:
3039         //     一个 System.EventArgs,其中包含事件数据。
3040         [EditorBrowsable(EditorBrowsableState.Advanced)]
3041         protected virtual void OnTabIndexChanged(EventArgs e);
3042         //
3043         // 摘要:
3044         //     引发 System.Windows.Forms.Control.TabStopChanged 事件。
3045         //
3046         // 参数:
3047         //   e:
3048         //     一个 System.EventArgs,其中包含事件数据。
3049         [EditorBrowsable(EditorBrowsableState.Advanced)]
3050         protected virtual void OnTabStopChanged(EventArgs e);
3051         //
3052         // 摘要:
3053         //     引发 System.Windows.Forms.Control.TextChanged 事件。
3054         //
3055         // 参数:
3056         //   e:
3057         //     一个 System.EventArgs,其中包含事件数据。
3058         [EditorBrowsable(EditorBrowsableState.Advanced)]
3059         protected virtual void OnTextChanged(EventArgs e);
3060         //
3061         // 摘要:
3062         //     引发 System.Windows.Forms.Control.Validated 事件。
3063         //
3064         // 参数:
3065         //   e:
3066         //     一个 System.EventArgs,其中包含事件数据。
3067         [EditorBrowsable(EditorBrowsableState.Advanced)]
3068         protected virtual void OnValidated(EventArgs e);
3069         //
3070         // 摘要:
3071         //     引发 System.Windows.Forms.Control.Validating 事件。
3072         //
3073         // 参数:
3074         //   e:
3075         //     包含事件数据的 System.ComponentModel.CancelEventArgs。
3076         [EditorBrowsable(EditorBrowsableState.Advanced)]
3077         protected virtual void OnValidating(CancelEventArgs e);
3078         //
3079         // 摘要:
3080         //     引发 System.Windows.Forms.Control.VisibleChanged 事件。
3081         //
3082         // 参数:
3083         //   e:
3084         //     一个 System.EventArgs,其中包含事件数据。
3085         [EditorBrowsable(EditorBrowsableState.Advanced)]
3086         protected virtual void OnVisibleChanged(EventArgs e);
3087         //
3088         // 摘要:
3089         //     处理命令键。
3090         //
3091         // 参数:
3092         //   msg:
3093         //     通过引用传递的 System.Windows.Forms.Message,它表示要处理的窗口消息。
3094         //
3095         //   keyData:
3096         //     System.Windows.Forms.Keys 值之一,它表示要处理的键。
3097         //
3098         // 返回结果:
3099         //     如果字符已由控件处理,则为 true;否则为 false。
3100         protected virtual bool ProcessCmdKey(ref Message msg, Keys keyData);
3101         //
3102         // 摘要:
3103         //     处理对话框字符。
3104         //
3105         // 参数:
3106         //   charCode:
3107         //     要处理的字符。
3108         //
3109         // 返回结果:
3110         //     如果字符已由控件处理,则为 true;否则为 false。
3111         protected virtual bool ProcessDialogChar(char charCode);
3112         //
3113         // 摘要:
3114         //     处理对话框键。
3115         //
3116         // 参数:
3117         //   keyData:
3118         //     System.Windows.Forms.Keys 值之一,它表示要处理的键。
3119         //
3120         // 返回结果:
3121         //     如果键已由控件处理,则为 true;否则为 false。
3122         protected virtual bool ProcessDialogKey(Keys keyData);
3123         //
3124         // 摘要:
3125         //     处理键消息并生成适当的控件事件。
3126         //
3127         // 参数:
3128         //   m:
3129         //     通过引用传递的 System.Windows.Forms.Message,它表示要处理的窗口消息。
3130         //
3131         // 返回结果:
3132         //     如果消息已由控件处理,则为 true;否则为 false。
3133         protected virtual bool ProcessKeyEventArgs(ref Message m);
3134         //
3135         // 摘要:
3136         //     预览键盘消息。
3137         //
3138         // 参数:
3139         //   m:
3140         //     通过引用传递的 System.Windows.Forms.Message,它表示要处理的窗口消息。
3141         //
3142         // 返回结果:
3143         //     如果消息已由控件处理,则为 true;否则为 false。
3144         protected virtual bool ProcessKeyPreview(ref Message m);
3145         //
3146         // 摘要:
3147         //     引发适当的拖动事件。
3148         //
3149         // 参数:
3150         //   key:
3151         //     要引发的事件。
3152         //
3153         //   e:
3154         //     包含事件数据的 System.Windows.Forms.DragEventArgs。
3155         [EditorBrowsable(EditorBrowsableState.Advanced)]
3156         protected void RaiseDragEvent(object key, DragEventArgs e);
3157         //
3158         // 摘要:
3159         //     引发适当的键事件。
3160         //
3161         // 参数:
3162         //   key:
3163         //     要引发的事件。
3164         //
3165         //   e:
3166         //     包含事件数据的 System.Windows.Forms.KeyEventArgs。
3167         [EditorBrowsable(EditorBrowsableState.Advanced)]
3168         protected void RaiseKeyEvent(object key, KeyEventArgs e);
3169         //
3170         // 摘要:
3171         //     引发适当的鼠标事件。
3172         //
3173         // 参数:
3174         //   key:
3175         //     要引发的事件。
3176         //
3177         //   e:
3178         //     包含事件数据的 System.Windows.Forms.MouseEventArgs。
3179         [EditorBrowsable(EditorBrowsableState.Advanced)]
3180         protected void RaiseMouseEvent(object key, MouseEventArgs e);
3181         //
3182         // 摘要:
3183         //     引发适当的绘画事件。
3184         //
3185         // 参数:
3186         //   key:
3187         //     要引发的事件。
3188         //
3189         //   e:
3190         //     包含事件数据的 System.Windows.Forms.PaintEventArgs。
3191         [EditorBrowsable(EditorBrowsableState.Advanced)]
3192         protected void RaisePaintEvent(object key, PaintEventArgs e);
3193         //
3194         // 摘要:
3195         //     强制为控件重新创建句柄。
3196         [EditorBrowsable(EditorBrowsableState.Advanced)]
3197         protected void RecreateHandle();
3198         //
3199         // 摘要:
3200         //     重置控件以处理 System.Windows.Forms.Control.MouseLeave 事件。
3201         [EditorBrowsable(EditorBrowsableState.Advanced)]
3202         protected void ResetMouseEventArgs();
3203         //
3204         // 摘要:
3205         //     将指定的 System.Windows.Forms.HorizontalAlignment 转换为相应的 System.Windows.Forms.HorizontalAlignment
3206         //     以支持从右向左的文本。
3207         //
3208         // 参数:
3209         //   align:
3210         //     System.Windows.Forms.HorizontalAlignment 值之一。
3211         //
3212         // 返回结果:
3213         //     System.Windows.Forms.HorizontalAlignment 值之一。
3214         [EditorBrowsable(EditorBrowsableState.Advanced)]
3215         protected HorizontalAlignment RtlTranslateAlignment(HorizontalAlignment align);
3216         //
3217         // 摘要:
3218         //     将指定的 System.Drawing.ContentAlignment 转换为相应的 System.Drawing.ContentAlignment 以支持从右向左的文本。
3219         //
3220         // 参数:
3221         //   align:
3222         //     System.Drawing.ContentAlignment 值之一。
3223         //
3224         // 返回结果:
3225         //     System.Drawing.ContentAlignment 值之一。
3226         [EditorBrowsable(EditorBrowsableState.Advanced)]
3227         protected ContentAlignment RtlTranslateAlignment(ContentAlignment align);
3228         //
3229         // 摘要:
3230         //     将指定的 System.Windows.Forms.LeftRightAlignment 转换为相应的 System.Windows.Forms.LeftRightAlignment
3231         //     以支持从右向左的文本。
3232         //
3233         // 参数:
3234         //   align:
3235         //     System.Windows.Forms.LeftRightAlignment 值之一。
3236         //
3237         // 返回结果:
3238         //     System.Windows.Forms.LeftRightAlignment 值之一。
3239         [EditorBrowsable(EditorBrowsableState.Advanced)]
3240         protected LeftRightAlignment RtlTranslateAlignment(LeftRightAlignment align);
3241         //
3242         // 摘要:
3243         //     将指定的 System.Windows.Forms.HorizontalAlignment 转换为相应的 System.Windows.Forms.HorizontalAlignment
3244         //     以支持从右向左的文本。
3245         //
3246         // 参数:
3247         //   align:
3248         //     System.Windows.Forms.HorizontalAlignment 值之一。
3249         //
3250         // 返回结果:
3251         //     System.Windows.Forms.HorizontalAlignment 值之一。
3252         [EditorBrowsable(EditorBrowsableState.Advanced)]
3253         protected HorizontalAlignment RtlTranslateHorizontal(HorizontalAlignment align);
3254         //
3255         // 摘要:
3256         //     将指定的 System.Windows.Forms.LeftRightAlignment 转换为相应的 System.Windows.Forms.LeftRightAlignment
3257         //     以支持从右向左的文本。
3258         //
3259         // 参数:
3260         //   align:
3261         //     System.Windows.Forms.LeftRightAlignment 值之一。
3262         //
3263         // 返回结果:
3264         //     System.Windows.Forms.LeftRightAlignment 值之一。
3265         [EditorBrowsable(EditorBrowsableState.Advanced)]
3266         protected LeftRightAlignment RtlTranslateLeftRight(LeftRightAlignment align);
3267         //
3268         // 摘要:
3269         //     缩放控件的位置、大小、空白和边距。
3270         //
3271         // 参数:
3272         //   factor:
3273         //     控件高度和宽度的缩放因子。
3274         //
3275         //   specified:
3276         //     一个 System.Windows.Forms.BoundsSpecified 值,该值指定定义控件的大小和位置时要使用的控件边界。
3277         [EditorBrowsable(EditorBrowsableState.Advanced)]
3278         protected virtual void ScaleControl(SizeF factor, BoundsSpecified specified);
3279         //
3280         // 摘要:
3281         //     此方法与此类无关。
3282         //
3283         // 参数:
3284         //   dx:
3285         //     水平比例因子。
3286         //
3287         //   dy:
3288         //     垂直比例因子。
3289         [EditorBrowsable(EditorBrowsableState.Never)]
3290         protected virtual void ScaleCore(float dx, float dy);
3291         //
3292         // 摘要:
3293         //     激活子控件。 还可以指定从中选择控件的 Tab 键顺序的方向。
3294         //
3295         // 参数:
3296         //   directed:
3297         //     true 表示要指定选择控件的方向;false 表示不指定。
3298         //
3299         //   forward:
3300         //     如果为 true 则在 Tab 键顺序中前移;如果为 false 则在 Tab 键顺序中后移。
3301         protected virtual void Select(bool directed, bool forward);
3302         //
3303         // 摘要:
3304         //     设置一个值,该值指示当启用控件的 System.Windows.Forms.Control.AutoSize 属性时控件的行为方式。
3305         //
3306         // 参数:
3307         //   mode:
3308         //     System.Windows.Forms.AutoSizeMode 值之一。
3309         protected void SetAutoSizeMode(AutoSizeMode mode);
3310         //
3311         // 摘要:
3312         //     执行设置该控件的指定边界的工作。
3313         //
3314         // 参数:
3315         //   x:
3316         //     控件的新 System.Windows.Forms.Control.Left 属性值。
3317         //
3318         //   y:
3319         //     控件的新 System.Windows.Forms.Control.Top 属性值。
3320         //
3321         //   width:
3322         //     控件的新 System.Windows.Forms.Control.Width 属性值。
3323         //
3324         //   height:
3325         //     控件的新 System.Windows.Forms.Control.Height 属性值。
3326         //
3327         //   specified:
3328         //     System.Windows.Forms.BoundsSpecified 值的按位组合。
3329         [EditorBrowsable(EditorBrowsableState.Advanced)]
3330         protected virtual void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified);
3331         //
3332         // 摘要:
3333         //     设置控件的工作区的大小。
3334         //
3335         // 参数:
3336         //   x:
3337         //     工作区宽度(以像素为单位)。
3338         //
3339         //   y:
3340         //     工作区高度(以像素为单位)。
3341         [EditorBrowsable(EditorBrowsableState.Advanced)]
3342         protected virtual void SetClientSizeCore(int x, int y);
3343         //
3344         // 摘要:
3345         //     将指定的 System.Windows.Forms.ControlStyles 标志设置为 true 或 false。
3346         //
3347         // 参数:
3348         //   flag:
3349         //     要设置的 System.Windows.Forms.ControlStyles 位。
3350         //
3351         //   value:
3352         //     true 表示将指定的样式应用于控件;false 表示不应用。
3353         [EditorBrowsable(EditorBrowsableState.Advanced)]
3354         protected void SetStyle(ControlStyles flag, bool value);
3355         //
3356         // 摘要:
3357         //     将控件设置为顶级控件。
3358         //
3359         // 参数:
3360         //   value:
3361         //     true 表示将控件设置为顶级控件;false 表示不作此设置。
3362         //
3363         // 异常:
3364         //   T:System.InvalidOperationException:
3365         //     value 参数被设置为 true 且控件是 ActiveX 控件。
3366         //
3367         //   T:System.Exception:
3368         //     System.Windows.Forms.Control.GetTopLevel 返回值不等于 value 参数且 System.Windows.Forms.Control.Parent
3369         //     属性不为 null。
3370         protected void SetTopLevel(bool value);
3371         //
3372         // 摘要:
3373         //     将控件设置为指定的可见状态。
3374         //
3375         // 参数:
3376         //   value:
3377         //     true 表示使控件可见;false 表示使控件不可见。
3378         protected virtual void SetVisibleCore(bool value);
3379         //
3380         // 摘要:
3381         //     确定整个控件(从控件工作区的高度和宽度起计算)的大小。
3382         //
3383         // 参数:
3384         //   clientSize:
3385         //     一个 System.Drawing.Size 值,表示控件工作区的高度和宽度。
3386         //
3387         // 返回结果:
3388         //     一个 System.Drawing.Size 值,表示整个控件的高度和宽度。
3389         [EditorBrowsable(EditorBrowsableState.Advanced)]
3390         protected virtual Size SizeFromClientSize(Size clientSize);
3391         //
3392         // 摘要:
3393         //     用指定大小和位置更新控件的边界。
3394         //
3395         // 参数:
3396         //   x:
3397         //     控件的 System.Drawing.Point.X 坐标。
3398         //
3399         //   y:
3400         //     控件的 System.Drawing.Point.Y 坐标。
3401         //
3402         //   width:
3403         //     控件的 System.Drawing.Size.Width。
3404         //
3405         //   height:
3406         //     控件的 System.Drawing.Size.Height。
3407         [EditorBrowsable(EditorBrowsableState.Advanced)]
3408         protected void UpdateBounds(int x, int y, int width, int height);
3409         //
3410         // 摘要:
3411         //     用指定大小、位置和工作区的大小更新控件的边界。
3412         //
3413         // 参数:
3414         //   x:
3415         //     控件的 System.Drawing.Point.X 坐标。
3416         //
3417         //   y:
3418         //     控件的 System.Drawing.Point.Y 坐标。
3419         //
3420         //   width:
3421         //     控件的 System.Drawing.Size.Width。
3422         //
3423         //   height:
3424         //     控件的 System.Drawing.Size.Height。
3425         //
3426         //   clientWidth:
3427         //     控件的工作区的 System.Drawing.Size.Width。
3428         //
3429         //   clientHeight:
3430         //     控件的工作区的 System.Drawing.Size.Height。
3431         [EditorBrowsable(EditorBrowsableState.Advanced)]
3432         protected void UpdateBounds(int x, int y, int width, int height, int clientWidth, int clientHeight);
3433         //
3434         // 摘要:
3435         //     强制将分配的样式重新应用到控件。
3436         [EditorBrowsable(EditorBrowsableState.Advanced)]
3437         protected void UpdateStyles();
3438         //
3439         // 摘要:
3440         //     按控件的父级的 Z 顺序更新控件。
3441         [EditorBrowsable(EditorBrowsableState.Advanced)]
3442         protected void UpdateZOrder();
3443         //
3444         // 摘要:
3445         //     处理 Windows 消息。
3446         //
3447         // 参数:
3448         //   m:
3449         //     要处理的 WindowsSystem.Windows.Forms.Message。
3450         protected virtual void WndProc(ref Message m);
3451         //
3452         // 摘要:
3453         //     就指定的子控件的指定 System.Windows.Forms.AccessibleEvents 通知辅助功能客户端应用程序。
3454         //
3455         // 参数:
3456         //   accEvent:
3457         //     要将其通报给具有辅助功能的客户端应用程序的 System.Windows.Forms.AccessibleEvents。
3458         //
3459         //   childID:
3460         //     就该辅助性事件要通知的子 System.Windows.Forms.Control。
3461         [EditorBrowsable(EditorBrowsableState.Advanced)]
3462         protected internal void AccessibilityNotifyClients(AccessibleEvents accEvent, int childID);
3463         //
3464         // 摘要:
3465         //     处理键盘消息。
3466         //
3467         // 参数:
3468         //   m:
3469         //     通过引用传递的 System.Windows.Forms.Message,它表示要处理的窗口消息。
3470         //
3471         // 返回结果:
3472         //     如果消息已由控件处理,则为 true;否则为 false。
3473         protected internal virtual bool ProcessKeyMessage(ref Message m);
3474         //
3475         // 摘要:
3476         //     处理助记键字符。
3477         //
3478         // 参数:
3479         //   charCode:
3480         //     要处理的字符。
3481         //
3482         // 返回结果:
3483         //     如果字符由控件作为助记键处理,则为 true;否则为 false。
3484         protected internal virtual bool ProcessMnemonic(char charCode);
3485         //
3486         // 摘要:
3487         //     将指定的 System.Drawing.ContentAlignment 转换为相应的 System.Drawing.ContentAlignment 以支持从右向左的文本。
3488         //
3489         // 参数:
3490         //   align:
3491         //     System.Drawing.ContentAlignment 值之一。
3492         //
3493         // 返回结果:
3494         //     System.Drawing.ContentAlignment 值之一。
3495         [EditorBrowsable(EditorBrowsableState.Advanced)]
3496         protected internal ContentAlignment RtlTranslateContent(ContentAlignment align);
3497         //
3498         // 摘要:
3499         //     用当前大小和位置更新控件的边界。
3500         [EditorBrowsable(EditorBrowsableState.Advanced)]
3501         protected internal void UpdateBounds();
3502 
3503         //
3504         // 摘要:
3505         //     提供关于可以供辅助功能应用程序使用的控件的信息。
3506         [ComVisible(true)]
3507         public class ControlAccessibleObject : AccessibleObject
3508         {
3509             //
3510             // 摘要:
3511             //     初始化 System.Windows.Forms.Control.ControlAccessibleObject 类的新实例。
3512             //
3513             // 参数:
3514             //   ownerControl:
3515             //     拥有 System.Windows.Forms.Control.ControlAccessibleObject 的 System.Windows.Forms.Control。
3516             //
3517             // 异常:
3518             //   T:System.ArgumentNullException:
3519             //     ownerControl 参数值为 null。
3520             public ControlAccessibleObject(Control ownerControl);
3521 
3522             //
3523             // 返回结果:
3524             //     A description of the default action for an object, or null if this object has
3525             //     no default action.
3526             public override string DefaultAction { get; }
3527             //
3528             // 摘要:
3529             //     获取 System.Windows.Forms.Control.ControlAccessibleObject 的说明。
3530             //
3531             // 返回结果:
3532             //     描述 System.Windows.Forms.Control.ControlAccessibleObject 的字符串。
3533             public override string Description { get; }
3534             //
3535             // 摘要:
3536             //     获取或设置辅助性对象的句柄。
3537             //
3538             // 返回结果:
3539             //     System.IntPtr,它表示控件的句柄。
3540             public IntPtr Handle { get; set; }
3541             //
3542             // 摘要:
3543             //     获取有关对象的用途或用法的说明。
3544             //
3545             // 返回结果:
3546             //     对象用途或如何使用对象的说明。
3547             public override string Help { get; }
3548             //
3549             // 摘要:
3550             //     获取辅助性对象的快捷键或访问键。
3551             //
3552             // 返回结果:
3553             //     辅助性对象的对象快捷键或访问键,或者,如果没有与此对象相关联的快捷键,则是 null。
3554             public override string KeyboardShortcut { get; }
3555             //
3556             // 摘要:
3557             //     获取或设置辅助性对象名。
3558             //
3559             // 返回结果:
3560             //     辅助性对象名。
3561             public override string Name { get; set; }
3562             //
3563             // 摘要:
3564             //     获取辅助性对象的所有者。
3565             //
3566             // 返回结果:
3567             //     拥有 System.Windows.Forms.Control.ControlAccessibleObject 的 System.Windows.Forms.Control。
3568             public Control Owner { get; }
3569             //
3570             // 返回结果:
3571             //     An System.Windows.Forms.AccessibleObject that represents the parent of an accessible
3572             //     object, or null if there is no parent object.
3573             public override AccessibleObject Parent { get; }
3574             //
3575             // 摘要:
3576             //     获取此辅助性对象的角色。
3577             //
3578             // 返回结果:
3579             //     System.Windows.Forms.AccessibleRole 值之一。
3580             public override AccessibleRole Role { get; }
3581 
3582             //
3583             // 摘要:
3584             //     获取帮助主题标识符及与该辅助性对象相关的帮助文件的路径。
3585             //
3586             // 参数:
3587             //   fileName:
3588             //     当此方法返回时将包含一个字符串,该字符串表示与此辅助功能对象关联的帮助文件的路径。 该参数未经初始化即被传递。
3589             //
3590             // 返回结果:
3591             //     帮助主题的标识符,或者,如果没有帮助主题,则为 -1。 当返回时,fileName 参数将包含与此辅助功能对象关联的帮助文件的路径;如果未指定任何 IAccessible
3592             //     接口,则为 null。
3593             public override int GetHelpTopic(out string fileName);
3594             //
3595             // 摘要:
3596             //     通知指定的 System.Windows.Forms.AccessibleEvents 的辅助功能客户端应用程序。
3597             //
3598             // 参数:
3599             //   accEvent:
3600             //     要将其通报给具有辅助功能的客户端应用程序的 System.Windows.Forms.AccessibleEvents。
3601             public void NotifyClients(AccessibleEvents accEvent);
3602             //
3603             // 摘要:
3604             //     就指定的子控件的指定 System.Windows.Forms.AccessibleEvents 通知辅助功能客户端应用程序。
3605             //
3606             // 参数:
3607             //   accEvent:
3608             //     要将其通报给具有辅助功能的客户端应用程序的 System.Windows.Forms.AccessibleEvents。
3609             //
3610             //   childID:
3611             //     就该辅助性事件要通知的子 System.Windows.Forms.Control。
3612             public void NotifyClients(AccessibleEvents accEvent, int childID);
3613             //
3614             // 摘要:
3615             //     就指定的子控件的指定 System.Windows.Forms.AccessibleEvents 通知辅助功能客户端应用程序,给定 System.Windows.Forms.AccessibleObject
3616             //     的标识。
3617             //
3618             // 参数:
3619             //   accEvent:
3620             //     要将其通报给具有辅助功能的客户端应用程序的 System.Windows.Forms.AccessibleEvents。
3621             //
3622             //   objectID:
3623             //     System.Windows.Forms.AccessibleObject 的标识符。
3624             //
3625             //   childID:
3626             //     就该辅助性事件要通知的子 System.Windows.Forms.Control。
3627             public void NotifyClients(AccessibleEvents accEvent, int objectID, int childID);
3628             //
3629             // 返回结果:
3630             //     A string that represents the current object.
3631             public override string ToString();
3632         }
3633         //
3634         // 摘要:
3635         //     表示 System.Windows.Forms.Control 对象的集合。
3636         [ComVisible(false)]
3637         [DefaultMember("Item")]
3638         [ListBindable(false)]
3639         public class ControlCollection : ArrangedElementCollection, IList, ICollection, IEnumerable, ICloneable
3640         {
3641             //
3642             // 摘要:
3643             //     初始化 System.Windows.Forms.Control.ControlCollection 类的新实例。
3644             //
3645             // 参数:
3646             //   owner:
3647             //     System.Windows.Forms.Control,它表示拥有控件集合的控件。
3648             public ControlCollection(Control owner);
3649 
3650             //
3651             // 摘要:
3652             //     指示位于集合中指定索引位置的 System.Windows.Forms.Control。
3653             //
3654             // 参数:
3655             //   index:
3656             //     要从控件集合中检索的控件索引。
3657             //
3658             // 返回结果:
3659             //     位于控件集合内指定索引位置的 System.Windows.Forms.Control。
3660             //
3661             // 异常:
3662             //   T:System.ArgumentOutOfRangeException:
3663             //     index 值小于零或者大于等于集合中控件的数量。
3664             public virtual Control this[int index] { get; }
3665             //
3666             // 摘要:
3667             //     指示集合中具有指定键的一个 System.Windows.Forms.Control。
3668             //
3669             // 参数:
3670             //   key:
3671             //     要从控件集合中检索的控件的名称。
3672             //
3673             // 返回结果:
3674             //     System.Windows.Forms.Control.ControlCollection 中具有指定键的 System.Windows.Forms.Control。
3675             public virtual Control this[string key] { get; }
3676 
3677             //
3678             // 摘要:
3679             //     获取拥有此 System.Windows.Forms.Control.ControlCollection 的控件。
3680             //
3681             // 返回结果:
3682             //     拥有此 System.Windows.Forms.Control.ControlCollection 的 System.Windows.Forms.Control。
3683             public Control Owner { get; }
3684 
3685             //
3686             // 摘要:
3687             //     将指定的控件添加到控件集合中。
3688             //
3689             // 参数:
3690             //   value:
3691             //     要添加到控件集合的 System.Windows.Forms.Control。
3692             //
3693             // 异常:
3694             //   T:System.Exception:
3695             //     指定的控件是顶级控件,或者如果将该控件添加到控件集合中,将导致循环控件引用。
3696             //
3697             //   T:System.ArgumentException:
3698             //     分配到 value 参数的对象不是 System.Windows.Forms.Control。
3699             public virtual void Add(Control value);
3700             //
3701             // 摘要:
3702             //     将控件对象数组添加到集合中。
3703             //
3704             // 参数:
3705             //   controls:
3706             //     要添加到集合中的 System.Windows.Forms.Control 对象的数组。
3707             [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
3708             public virtual void AddRange(Control[] controls);
3709             //
3710             // 摘要:
3711             //     从集合中移除所有控件。
3712             public virtual void Clear();
3713             //
3714             // 摘要:
3715             //     确定指定控件是否为集合的成员。
3716             //
3717             // 参数:
3718             //   control:
3719             //     要在集合中定位的 System.Windows.Forms.Control。
3720             //
3721             // 返回结果:
3722             //     如果 System.Windows.Forms.Control 是集合的成员,则为 true;否则为 false。
3723             public bool Contains(Control control);
3724             //
3725             // 摘要:
3726             //     确定 System.Windows.Forms.Control.ControlCollection 是否包含具有指定键的项。
3727             //
3728             // 参数:
3729             //   key:
3730             //     要在 System.Windows.Forms.Control.ControlCollection 中定位的键。
3731             //
3732             // 返回结果:
3733             //     如果 System.Windows.Forms.Control.ControlCollection 包含具有指定键的项,则为 true;否则为 false。
3734             public virtual bool ContainsKey(string key);
3735             //
3736             // 摘要:
3737             //     根据控件的 System.Windows.Forms.Control.Name 属性搜索控件并生成由所有匹配项组成的数组。
3738             //
3739             // 参数:
3740             //   key:
3741             //     要在 System.Windows.Forms.Control.ControlCollection 中定位的键。
3742             //
3743             //   searchAllChildren:
3744             //     如果搜索所有子控件,则为 true;否则为 false。
3745             //
3746             // 返回结果:
3747             //     包含匹配控件的 System.Windows.Forms.Control 类型数组。
3748             //
3749             // 异常:
3750             //   T:System.ArgumentException:
3751             //     key 参数为 null 或是空字符串 ("")。
3752             public Control[] Find(string key, bool searchAllChildren);
3753             //
3754             // 摘要:
3755             //     检索控件集合内的指定子控件的索引。
3756             //
3757             // 参数:
3758             //   child:
3759             //     要在控件集合中搜索的 System.Windows.Forms.Control。
3760             //
3761             // 返回结果:
3762             //     从零开始的索引值,它表示指定的子控件在控件集合中的位置。
3763             //
3764             // 异常:
3765             //   T:System.ArgumentException:
3766             //     child System.Windows.Forms.Control 不在 System.Windows.Forms.Control.ControlCollection
3767             //     中。
3768             public int GetChildIndex(Control child);
3769             //
3770             // 摘要:
3771             //     检索控件集合内的指定子控件的索引,并且如果指定控件不在控件集合内,也可能引发异常。
3772             //
3773             // 参数:
3774             //   child:
3775             //     要在控件集合中搜索的 System.Windows.Forms.Control。
3776             //
3777             //   throwException:
3778             //     如果 child 参数中指定的 System.Windows.Forms.Control 不是 System.Windows.Forms.Control.ControlCollection
3779             //     中的控件即引发异常,则为 true;否则为 false。
3780             //
3781             // 返回结果:
3782             //     一个从零开始的索引值,它表示指定的子控件在控件集合中的位置;如果在 System.Windows.Forms.Control.ControlCollection
3783             //     中未找到指定的 System.Windows.Forms.Control,则索引值为 -1。
3784             //
3785             // 异常:
3786             //   T:System.ArgumentException:
3787             //     child System.Windows.Forms.Control 不在 System.Windows.Forms.Control.ControlCollection
3788             //     中,且 throwException 参数值为 true。
3789             public virtual int GetChildIndex(Control child, bool throwException);
3790             //
3791             // 摘要:
3792             //     检索对用于循环访问 System.Windows.Forms.Control.ControlCollection 的枚举数对象的引用。
3793             //
3794             // 返回结果:
3795             //     一个 System.Collections.IEnumerator。
3796             [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
3797             public override IEnumerator GetEnumerator();
3798             //
3799             // 摘要:
3800             //     检索控件集合中指定控件的索引。
3801             //
3802             // 参数:
3803             //   control:
3804             //     要在集合中定位的 System.Windows.Forms.Control。
3805             //
3806             // 返回结果:
3807             //     一个从零开始的索引值,它表示 System.Windows.Forms.Control.ControlCollection 中的指定 System.Windows.Forms.Control
3808             //     的位置。
3809             public int IndexOf(Control control);
3810             //
3811             // 摘要:
3812             //     检索指定项在集合中的第一个匹配项的索引。
3813             //
3814             // 参数:
3815             //   key:
3816             //     要搜索的控件的名称。
3817             //
3818             // 返回结果:
3819             //     具有指定名称的控件在集合中的第一个匹配项的从零开始的索引。
3820             public virtual int IndexOfKey(string key);
3821             //
3822             // 摘要:
3823             //     从控件集合中移除指定的控件。
3824             //
3825             // 参数:
3826             //   value:
3827             //     要从 System.Windows.Forms.Control.ControlCollection 移除的 System.Windows.Forms.Control。
3828             public virtual void Remove(Control value);
3829             //
3830             // 摘要:
3831             //     在指定的索引位置从控件集合移除控件。
3832             //
3833             // 参数:
3834             //   index:
3835             //     要移除的 System.Windows.Forms.Control 的索引值。
3836             public void RemoveAt(int index);
3837             //
3838             // 摘要:
3839             //     移除具有指定键的子控件。
3840             //
3841             // 参数:
3842             //   key:
3843             //     要移除的子控件的名称。
3844             public virtual void RemoveByKey(string key);
3845             //
3846             // 摘要:
3847             //     将集合中的指定子控件的索引设置为指定的索引值。
3848             //
3849             // 参数:
3850             //   child:
3851             //     要搜索的childSystem.Windows.Forms.Control。
3852             //
3853             //   newIndex:
3854             //     控件的新索引值。
3855             //
3856             // 异常:
3857             //   T:System.ArgumentException:
3858             //     child 控件不在 System.Windows.Forms.Control.ControlCollection 中。
3859             public virtual void SetChildIndex(Control child, int newIndex);
3860         }
3861     }
3862 }
View Code

 

#region 程序集 System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Windows.Forms.dll
#endregion

using System.ComponentModel;
using System.Drawing;
using System.Drawing.Design;
using System.Runtime.InteropServices;

namespace System.Windows.Forms
{
    //
    // 摘要:
    //     实现文本控件要求的基本功能。
    [ClassInterface(ClassInterfaceType.AutoDispatch)]
    [ComVisible(true)]
    [DefaultBindingProperty("Text")]
    [DefaultEvent("TextChanged")]
    [Designer("System.Windows.Forms.Design.TextBoxBaseDesigner, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
    public abstract class TextBoxBase : Control
    {
        //
        // 摘要:
        //     获取或设置一个值,该值指示在多行文本框控件中按 Tab 键时,是否在控件中键入一个 Tab 字符,而不是按选项卡的顺序将焦点移动到下一个控件。
        //
        // 返回结果:
        //     如果用户可以使用 Tab 键在多行文本框控件中输入 Tab 字符,则为 true;如果按 Tab 键移动焦点,则为 false。 默认值为 false。
        [DefaultValue(false)]
        [SRCategoryAttribute("CatBehavior")]
        [SRDescriptionAttribute("TextBoxAcceptsTabDescr")]
        public bool AcceptsTab { get; set; }
        //
        // 摘要:
        //     获取或设置一个值,该值指示当更改分配给控件的字体时,是否自动调整控件的高度。
        //
        // 返回结果:
        //     如果在更改字体时自动调整控件的高度,则为 true;否则为 false。 默认值为 true。
        [Browsable(false)]
        [DefaultValue(true)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        [Localizable(true)]
        [RefreshProperties(RefreshProperties.Repaint)]
        [SRCategoryAttribute("CatBehavior")]
        [SRDescriptionAttribute("TextBoxAutoSizeDescr")]
        public override bool AutoSize { get; set; }
        //
        // 摘要:
        //     获取或设置控件的背景色。
        //
        // 返回结果:
        //     表示控件背景色的 System.Drawing.Color。
        [DispId(-501)]
        [SRCategoryAttribute("CatAppearance")]
        [SRDescriptionAttribute("ControlBackColorDescr")]
        public override Color BackColor { get; set; }
        //
        // 摘要:
        //     此属性与此类无关。
        //
        // 返回结果:
        //     一个 System.Drawing.Image。
        [Browsable(false)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        public override Image BackgroundImage { get; set; }
        //
        // 摘要:
        //     此属性与此类无关。
        //
        // 返回结果:
        //     System.Windows.Forms.ImageLayout 值之一。
        [Browsable(false)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        public override ImageLayout BackgroundImageLayout { get; set; }
        //
        // 摘要:
        //     获取或设置文本框控件的边框类型。
        //
        // 返回结果:
        //     表示文本框控件边框类型的 System.Windows.Forms.BorderStyle。 默认值为 Fixed3D。
        //
        // 异常:
        //   T:System.ComponentModel.InvalidEnumArgumentException:
        //     分配给该属性的值不在该枚举的有效值范围内。
        [DefaultValue(BorderStyle.Fixed3D)]
        [DispId(-504)]
        [SRCategoryAttribute("CatAppearance")]
        [SRDescriptionAttribute("TextBoxBorderDescr")]
        public BorderStyle BorderStyle { get; set; }
        //
        // 摘要:
        //     获取一个值,该值指示用户在文本框控件中能否撤消前一操作。
        //
        // 返回结果:
        //     如果用户可以撤消在文本框控件中执行的前一操作,则为 true;否则为 false。
        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        [SRCategoryAttribute("CatBehavior")]
        [SRDescriptionAttribute("TextBoxCanUndoDescr")]
        public bool CanUndo { get; }
        //
        // 摘要:
        //     获取或设置控件的前景色。
        //
        // 返回结果:
        //     表示控件前景色的 System.Drawing.Color。
        [DispId(-513)]
        [SRCategoryAttribute("CatAppearance")]
        [SRDescriptionAttribute("ControlForeColorDescr")]
        public override Color ForeColor { get; set; }
        //
        // 摘要:
        //     获取或设置一个值,该值指示当文本框控件没有焦点时,该控件中选定的文本是否保持突出显示。
        //
        // 返回结果:
        //     如果当文本框控件没有焦点时,选定文本不突出显示,则为 true;如果当文本框控件没有焦点时,选定文本保持突出显示,则为 false。 默认值为 true。
        [DefaultValue(true)]
        [SRCategoryAttribute("CatBehavior")]
        [SRDescriptionAttribute("TextBoxHideSelectionDescr")]
        public bool HideSelection { get; set; }
        //
        // 摘要:
        //     获取或设置文本框控件中的文本行。
        //
        // 返回结果:
        //     包含文本框控件中的文本的字符串数组。
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        [Editor("System.Windows.Forms.Design.StringArrayEditor, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(UITypeEditor))]
        [Localizable(true)]
        [MergableProperty(false)]
        [SRCategoryAttribute("CatAppearance")]
        [SRDescriptionAttribute("TextBoxLinesDescr")]
        public string[] Lines { get; set; }
        //
        // 摘要:
        //     获取或设置用户可在文本框控件中键入或粘贴的最大字符数。
        //
        // 返回结果:
        //     可以在文本框控件中输入的字符数。 默认值为 32767。
        //
        // 异常:
        //   T:System.ArgumentOutOfRangeException:
        //     分配给属性的值小于零。
        [DefaultValue(32767)]
        [Localizable(true)]
        [SRCategoryAttribute("CatBehavior")]
        [SRDescriptionAttribute("TextBoxMaxLengthDescr")]
        public virtual int MaxLength { get; set; }
        //
        // 摘要:
        //     获取或设置一个值,该值指示自创建文本框控件或上次设置该控件的内容后,用户修改了该控件。
        //
        // 返回结果:
        //     如果控件的内容被修改了,则为 true,否则为 false。 默认值为 false。
        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        [SRCategoryAttribute("CatBehavior")]
        [SRDescriptionAttribute("TextBoxModifiedDescr")]
        public bool Modified { get; set; }
        //
        // 摘要:
        //     获取或设置一个值,该值指示它是否为多行文本框控件。
        //
        // 返回结果:
        //     如果该控件是多行文本框控件,则为 true;否则为 false。 默认值为 false。
        [DefaultValue(false)]
        [Localizable(true)]
        [RefreshProperties(RefreshProperties.All)]
        [SRCategoryAttribute("CatBehavior")]
        [SRDescriptionAttribute("TextBoxMultilineDescr")]
        public virtual bool Multiline { get; set; }
        //
        // 摘要:
        //     此属性与此类无关。
        //
        // 返回结果:
        //     一个 System.Windows.Forms.Padding 值。
        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        public Padding Padding { get; set; }
        //
        // 摘要:
        //     获取文本框的首选高度。
        //
        // 返回结果:
        //     文本框的首选高度。
        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        [EditorBrowsable(EditorBrowsableState.Advanced)]
        [SRCategoryAttribute("CatLayout")]
        [SRDescriptionAttribute("TextBoxPreferredHeightDescr")]
        public int PreferredHeight { get; }
        //
        // 摘要:
        //     获取或设置一个值,该值指示文本框中的文本是否为只读。
        //
        // 返回结果:
        //     如果文本框是只读的,则为 true,否则为 false。 默认值为 false。
        [DefaultValue(false)]
        [RefreshProperties(RefreshProperties.Repaint)]
        [SRCategoryAttribute("CatBehavior")]
        [SRDescriptionAttribute("TextBoxReadOnlyDescr")]
        public bool ReadOnly { get; set; }
        //
        // 摘要:
        //     获取或设置一个值,该值指示控件中当前选定的文本。
        //
        // 返回结果:
        //     表示文本框中当前选定文本的字符串。
        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        [SRCategoryAttribute("CatAppearance")]
        [SRDescriptionAttribute("TextBoxSelectedTextDescr")]
        public virtual string SelectedText { get; set; }
        //
        // 摘要:
        //     获取或设置文本框中选定的字符数。
        //
        // 返回结果:
        //     文本框中选定的字符数。
        //
        // 异常:
        //   T:System.ArgumentOutOfRangeException:
        //     赋给的值小于零。
        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        [SRCategoryAttribute("CatAppearance")]
        [SRDescriptionAttribute("TextBoxSelectionLengthDescr")]
        public virtual int SelectionLength { get; set; }
        //
        // 摘要:
        //     获取或设置文本框中选定的文本起始点。
        //
        // 返回结果:
        //     文本框中选定的文本的起始位置。
        //
        // 异常:
        //   T:System.ArgumentOutOfRangeException:
        //     赋给的值小于零。
        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        [SRCategoryAttribute("CatAppearance")]
        [SRDescriptionAttribute("TextBoxSelectionStartDescr")]
        public int SelectionStart { get; set; }
        //
        // 摘要:
        //     获取或设置一个值,该值指示是否启用已定义的快捷方式。
        //
        // 返回结果:
        //     如果启用快捷方式,则为 true;否则为 false。
        [DefaultValue(true)]
        [SRCategoryAttribute("CatBehavior")]
        [SRDescriptionAttribute("TextBoxShortcutsEnabledDescr")]
        public virtual bool ShortcutsEnabled { get; set; }
        //
        // 摘要:
        //     获取或设置文本框中的当前文本。
        //
        // 返回结果:
        //     在控件中显示的文本。
        [Editor("System.ComponentModel.Design.MultilineStringEditor, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(UITypeEditor))]
        [Localizable(true)]
        public override string Text { get; set; }
        //
        // 摘要:
        //     获取控件中文本的长度。
        //
        // 返回结果:
        //     控件的文本中包含的字符数。
        [Browsable(false)]
        public virtual int TextLength { get; }
        //
        // 摘要:
        //     指示多行文本框控件在必要时是否自动换行到下一行的开始。
        //
        // 返回结果:
        //     如果多行文本框控件可换行,则为 true;如果当用户键入的内容超过了控件的右边缘时,文本框控件自动水平滚动,则为 false。 默认值为 true。
        [DefaultValue(true)]
        [Localizable(true)]
        [SRCategoryAttribute("CatBehavior")]
        [SRDescriptionAttribute("TextBoxWordWrapDescr")]
        public bool WordWrap { get; set; }
        //
        // 摘要:
        //     获取一个用以指示是否可以将 System.Windows.Forms.Control.ImeMode 属性设置为活动值的值,以启用 IME 支持。
        //
        // 返回结果:
        //     如果 System.Windows.Forms.TextBoxBase.ReadOnly 属性为 true 或将此 System.Windows.Forms.TextBoxBase
        //     类设置为使用密码掩码字符,则为 false;否则为 true。
        protected override bool CanEnableIme { get; }
        //
        // 返回结果:
        //     一个 System.Windows.Forms.CreateParams,封装创建控件时所需的信息。
        protected override CreateParams CreateParams { get; }
        //
        // 摘要:
        //     获取或设置控件的默认光标。
        //
        // 返回结果:
        //     一个 System.Windows.Forms.Cursor 类型的对象,表示当前默认光标。
        protected override Cursor DefaultCursor { get; }
        //
        // 返回结果:
        //     一个 System.Drawing.Size 值。
        protected override Size DefaultSize { get; }
        //
        // 摘要:
        //     获取或设置一个值,该值指示是否在显示控件前在缓冲区中完成控件绘制。 此属性与此类无关。
        //
        // 返回结果:
        //     若要在控件上实现双缓冲,则为 true;否则,为 false。
        [EditorBrowsable(EditorBrowsableState.Never)]
        protected override bool DoubleBuffered { get; set; }
        //
        // 摘要:
        //     获取或设置控件的输入法编辑器 (IME) 模式。
        //
        // 返回结果:
        //     控件的 IME 模式。
        protected override ImeMode ImeModeBase { get; set; }

        //
        // 摘要:
        //     在 System.Windows.Forms.TextBoxBase.AcceptsTab 属性的值更改后发生。
        [SRCategoryAttribute("CatPropertyChanged")]
        [SRDescriptionAttribute("TextBoxBaseOnAcceptsTabChangedDescr")]
        public event EventHandler AcceptsTabChanged;
        //
        // 摘要:
        //     此事件与该类无关。
        [Browsable(false)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        public event EventHandler AutoSizeChanged;
        //
        // 摘要:
        //     当 System.Windows.Forms.TextBoxBase.BackgroundImage 属性的值更改时发生。 此事件与该类无关。
        [Browsable(false)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        public event EventHandler BackgroundImageChanged;
        //
        // 摘要:
        //     当 System.Windows.Forms.TextBoxBase.BackgroundImageLayout 属性的值更改时发生。 此事件与该类无关。
        [Browsable(false)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        public event EventHandler BackgroundImageLayoutChanged;
        //
        // 摘要:
        //     在 System.Windows.Forms.TextBoxBase.BorderStyle 属性的值更改后发生。
        [SRCategoryAttribute("CatPropertyChanged")]
        [SRDescriptionAttribute("TextBoxBaseOnBorderStyleChangedDescr")]
        public event EventHandler BorderStyleChanged;
        //
        // 摘要:
        //     在单击文本框时发生。
        [Browsable(true)]
        [EditorBrowsable(EditorBrowsableState.Always)]
        public event EventHandler Click;
        //
        // 摘要:
        //     在 System.Windows.Forms.TextBoxBase.HideSelection 属性的值更改后发生。
        [SRCategoryAttribute("CatPropertyChanged")]
        [SRDescriptionAttribute("TextBoxBaseOnHideSelectionChangedDescr")]
        public event EventHandler HideSelectionChanged;
        //
        // 摘要:
        //     在 System.Windows.Forms.TextBoxBase.Modified 属性的值更改后发生。
        [SRCategoryAttribute("CatPropertyChanged")]
        [SRDescriptionAttribute("TextBoxBaseOnModifiedChangedDescr")]
        public event EventHandler ModifiedChanged;
        //
        // 摘要:
        //     在鼠标单击该控件时发生。
        [Browsable(true)]
        [EditorBrowsable(EditorBrowsableState.Always)]
        public event MouseEventHandler MouseClick;
        //
        // 摘要:
        //     在 System.Windows.Forms.TextBoxBase.Multiline 属性的值更改后发生。
        [SRCategoryAttribute("CatPropertyChanged")]
        [SRDescriptionAttribute("TextBoxBaseOnMultilineChangedDescr")]
        public event EventHandler MultilineChanged;
        //
        // 摘要:
        //     此事件与该类无关。
        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        [SRCategoryAttribute("CatLayout")]
        [SRDescriptionAttribute("ControlOnPaddingChangedDescr")]
        public event EventHandler PaddingChanged;
        //
        // 摘要:
        //     在重绘控件时发生。 此事件与该类无关。
        [Browsable(false)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        public event PaintEventHandler Paint;
        //
        // 摘要:
        //     在 System.Windows.Forms.TextBoxBase.ReadOnly 属性的值更改后发生。
        [SRCategoryAttribute("CatPropertyChanged")]
        [SRDescriptionAttribute("TextBoxBaseOnReadOnlyChangedDescr")]
        public event EventHandler ReadOnlyChanged;

        //
        // 摘要:
        //     向文本框的当前文本追加文本。
        //
        // 参数:
        //   text:
        //     要向文本框的当前内容追加的文本。
        public void AppendText(string text);
        //
        // 摘要:
        //     从文本框控件中清除所有文本。
        public void Clear();
        //
        // 摘要:
        //     从该文本框的撤消缓冲区中清除关于最近操作的信息。
        public void ClearUndo();
        //
        // 摘要:
        //     将文本框中的当前选定内容复制到“剪贴板”。
        public void Copy();
        //
        // 摘要:
        //     将文本框中的当前选定内容移动到“剪贴板”中。
        public void Cut();
        //
        // 摘要:
        //     将 System.Windows.Forms.TextBoxBase.SelectionLength 属性的值指定为零,从而不会在控件中选择字符。
        public void DeselectAll();
        //
        // 摘要:
        //     检索控件内距离指定位置最近的字符。
        //
        // 参数:
        //   pt:
        //     查找距离最近的字符的位置。
        //
        // 返回结果:
        //     位于指定位置的字符。
        public virtual char GetCharFromPosition(Point pt);
        //
        // 摘要:
        //     检索距离指定位置最近的字符索引。
        //
        // 参数:
        //   pt:
        //     要搜索的位置。
        //
        // 返回结果:
        //     位于指定位置的从零开始的字符索引。
        public virtual int GetCharIndexFromPosition(Point pt);
        //
        // 摘要:
        //     检索给定行第一个字符的索引。
        //
        // 参数:
        //   lineNumber:
        //     要获取其第一个字符的索引的行。
        //
        // 返回结果:
        //     指定行中第一个字符的从零开始的索引。
        //
        // 异常:
        //   T:System.ArgumentOutOfRangeException:
        //     lineNumber 参数的值小于零。
        public int GetFirstCharIndexFromLine(int lineNumber);
        //
        // 摘要:
        //     检索当前行的第一个字符的索引。
        //
        // 返回结果:
        //     当前行中从零开始的字符索引。
        public int GetFirstCharIndexOfCurrentLine();
        //
        // 摘要:
        //     从控件文本内的指定字符位置检索行号。
        //
        // 参数:
        //   index:
        //     要搜索的字符索引位置。
        //
        // 返回结果:
        //     字符索引所在的从零开始的行号。
        public virtual int GetLineFromCharIndex(int index);
        //
        // 摘要:
        //     检索控件内指定字符索引处的位置。
        //
        // 参数:
        //   index:
        //     要检索其位置的字符索引。
        //
        // 返回结果:
        //     控件的矩形工作区内指定字符的位置。
        public virtual Point GetPositionFromCharIndex(int index);
        //
        // 摘要:
        //     用“剪贴板”的内容替换文本框中的当前选定内容。
        public void Paste();
        //
        // 摘要:
        //     将控件内容滚动到当前插入符号位置。
        public void ScrollToCaret();
        //
        // 摘要:
        //     选择文本框中的文本范围。
        //
        // 参数:
        //   start:
        //     文本框中当前选定文本的第一个字符的位置。
        //
        //   length:
        //     要选择的字符数。
        //
        // 异常:
        //   T:System.ArgumentOutOfRangeException:
        //     start 参数的值小于零。
        public void Select(int start, int length);
        //
        // 摘要:
        //     选定文本框中的所有文本。
        public void SelectAll();
        //
        // 摘要:
        //     返回表示 System.Windows.Forms.TextBoxBase 控件的字符串。
        //
        // 返回结果:
        //     表示当前 System.Windows.Forms.TextBoxBase 的字符串。 该字符串包括控件的类型和 System.Windows.Forms.TextBoxBase
        //     属性。
        public override string ToString();
        //
        // 摘要:
        //     撤消文本框中的上一个编辑操作。
        public void Undo();
        //
        protected override void CreateHandle();
        //
        // 摘要:
        //     确定指定的键是输入键还是需要预处理的特殊键。
        //
        // 参数:
        //   keyData:
        //     键值之一。
        //
        // 返回结果:
        //     如果指定的键是输入键,则为 true;否则为 false。
        protected override bool IsInputKey(Keys keyData);
        //
        // 摘要:
        //     引发 System.Windows.Forms.TextBoxBase.AcceptsTabChanged 事件。
        //
        // 参数:
        //   e:
        //     一个 System.EventArgs,其中包含事件数据。
        protected virtual void OnAcceptsTabChanged(EventArgs e);
        //
        // 摘要:
        //     引发 System.Windows.Forms.TextBoxBase.BorderStyleChanged 事件。
        //
        // 参数:
        //   e:
        //     一个 System.EventArgs,其中包含事件数据。
        protected virtual void OnBorderStyleChanged(EventArgs e);
        //
        // 参数:
        //   e:
        //     An System.EventArgs that contains the event data.
        protected override void OnFontChanged(EventArgs e);
        //
        // 参数:
        //   e:
        //     An System.EventArgs that contains the event data.
        protected override void OnHandleCreated(EventArgs e);
        //
        // 参数:
        //   e:
        //     An System.EventArgs that contains the event data.
        protected override void OnHandleDestroyed(EventArgs e);
        //
        // 摘要:
        //     引发 System.Windows.Forms.TextBoxBase.HideSelectionChanged 事件。
        //
        // 参数:
        //   e:
        //     一个 System.EventArgs,其中包含事件数据。
        protected virtual void OnHideSelectionChanged(EventArgs e);
        //
        // 摘要:
        //     引发 System.Windows.Forms.TextBoxBase.ModifiedChanged 事件。
        //
        // 参数:
        //   e:
        //     一个 System.EventArgs,其中包含事件数据。
        protected virtual void OnModifiedChanged(EventArgs e);
        //
        // 摘要:
        //     引发 System.Windows.Forms.Control.MouseUp 事件。
        //
        // 参数:
        //   mevent:
        //     事件数据。
        protected override void OnMouseUp(MouseEventArgs mevent);
        //
        // 摘要:
        //     引发 System.Windows.Forms.TextBoxBase.MultilineChanged 事件。
        //
        // 参数:
        //   e:
        //     一个 System.EventArgs,其中包含事件数据。
        protected virtual void OnMultilineChanged(EventArgs e);
        //
        // 摘要:
        //     此方法与此类无关。
        //
        // 参数:
        //   e:
        //     一个 System.EventArgs,其中包含事件数据。
        protected override void OnPaddingChanged(EventArgs e);
        //
        // 摘要:
        //     引发 System.Windows.Forms.TextBoxBase.ReadOnlyChanged 事件。
        //
        // 参数:
        //   e:
        //     一个 System.EventArgs,其中包含事件数据。
        protected virtual void OnReadOnlyChanged(EventArgs e);
        //
        // 参数:
        //   e:
        //     An System.EventArgs that contains the event data.
        protected override void OnTextChanged(EventArgs e);
        //
        // 摘要:
        //     处理命令键。
        //
        // 参数:
        //   msg:
        //     通过引用传递的 System.Windows.Forms.Message,它表示要处理的窗口消息。
        //
        //   keyData:
        //     System.Windows.Forms.Keys 值之一,它表示要处理的快捷键。
        //
        // 返回结果:
        //     如果命令键已由控件处理,则为 true;否则为 false。
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData);
        //
        // 参数:
        //   keyData:
        //     One of the System.Windows.Forms.Keys values that represents the key to process.
        //
        // 返回结果:
        //     如果键已由控件处理,则为 true;否则为 false。
        protected override bool ProcessDialogKey(Keys keyData);
        //
        // 摘要:
        //     设置 System.Windows.Forms.TextBoxBase 控件的指定边界。
        //
        // 参数:
        //   x:
        //     控件的新 System.Windows.Forms.Control.Left 属性值。
        //
        //   y:
        //     控件的新 System.Windows.Forms.Control.Top 属性值。
        //
        //   width:
        //     控件的新 System.Windows.Forms.Control.Width 属性值。
        //
        //   height:
        //     未使用。
        //
        //   specified:
        //     System.Windows.Forms.BoundsSpecified 值的按位组合。
        protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified);
        //
        // 参数:
        //   m:
        //     一个 Windows 消息对象。
        protected override void WndProc(ref Message m);
    }
}

posted @ 2020-07-27 16:42  客饭  阅读(270)  评论(0)    收藏  举报