System.Windows.Forms.Control : Component, IOleControl, IOleObject, IOleInPlaceObject, IOleInPlaceActiveObject....

#region 程序集 System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll
#endregion using System.Collections;
using System.ComponentModel;
using System.ComponentModel.Design.Serialization;
using System.Drawing;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows.Forms.Layout; namespace System.Windows.Forms
{
//
// 摘要:
// 定义控件的基类,控件是带有可视化表示形式的组件。
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
[DefaultEvent("Click")]
[DefaultProperty("Text")]
[Designer("System.Windows.Forms.Design.ControlDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[DesignerSerializer("System.Windows.Forms.Design.ControlCodeDomSerializer, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[ToolboxItemFilter("System.Windows.Forms")]
public class Control : Component, IOleControl, IOleObject, IOleInPlaceObject, IOleInPlaceActiveObject, IOleWindow, IViewObject, IViewObject2, IPersist, IPersistStreamInit, IPersistPropertyBag, IPersistStorage, IQuickActivate, ISupportOleDropSource, IDropTarget, ISynchronizeInvoke, IWin32Window, IArrangedElement, IBindableComponent, IComponent, IDisposable
{
//
// 摘要:
// 用默认设置初始化 System.Windows.Forms.Control 类的新实例。
public Control();
//
// 摘要:
// 用特定的文本初始化 System.Windows.Forms.Control 类的新实例。
//
// 参数:
// text:
// 控件显示的文本。
public Control(string text);
//
// 摘要:
// 用特定文本将 System.Windows.Forms.Control 类的新实例初始化为子控件。
//
// 参数:
// parent:
// 要成为该控件的父级的 System.Windows.Forms.Control。
//
// text:
// 控件显示的文本。
public Control(Control parent, string text);
//
// 摘要:
// 用特定的文本、大小和位置初始化 System.Windows.Forms.Control 类的新实例。
//
// 参数:
// text:
// 控件显示的文本。
//
// left:
// 控件距其容器左边缘的 System.Drawing.Point.X 位置(以像素为单位)。该值被分配给 System.Windows.Forms.Control.Left
// 属性。
//
// top:
// 控件距其容器上边缘的 System.Drawing.Point.Y 位置(以像素为单位)。该值被分配给 System.Windows.Forms.Control.Top
// 属性。
//
// width:
// 控件的宽度(以像素为单位)。该值被分配给 System.Windows.Forms.Control.Width 属性。
//
// height:
// 控件的高度(以像素为单位)。该值被分配给 System.Windows.Forms.Control.Height 属性。
public Control(string text, int left, int top, int width, int height);
//
// 摘要:
// 用特定的文本、大小和位置将 System.Windows.Forms.Control 类的新实例初始化为子控件。
//
// 参数:
// parent:
// 要成为该控件的父级的 System.Windows.Forms.Control。
//
// text:
// 控件显示的文本。
//
// left:
// 控件距其容器左边缘的 System.Drawing.Point.X 位置(以像素为单位)。该值被分配给 System.Windows.Forms.Control.Left
// 属性。
//
// top:
// 控件距其容器上边缘的 System.Drawing.Point.Y 位置(以像素为单位)。该值被分配给 System.Windows.Forms.Control.Top
// 属性。
//
// width:
// 控件的宽度(以像素为单位)。该值被分配给 System.Windows.Forms.Control.Width 属性。
//
// height:
// 控件的高度(以像素为单位)。该值被分配给 System.Windows.Forms.Control.Height 属性。
public Control(Control parent, string text, int left, int top, int width, int height); //
// 摘要:
// 获取或设置一个值,该值指示是否捕获对错误线程的调用,这些调用在调试应用程序时访问控件的 System.Windows.Forms.Control.Handle
// 属性。
//
// 返回结果:
// 如果捕获了对错误线程的调用,则为 true;否则为 false。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRDescriptionAttribute("ControlCheckForIllegalCrossThreadCalls")]
public static bool CheckForIllegalCrossThreadCalls { get; set; }
//
// 摘要:
// 获取控件的默认背景色。
//
// 返回结果:
// 控件的默认背景 System.Drawing.Color。默认为 System.Drawing.SystemColors.Control。
public static Color DefaultBackColor { get; }
//
// 摘要:
// 获取控件的默认字体。
//
// 返回结果:
// 控件的默认 System.Drawing.Font。根据用户的操作系统以及系统的本地区域性设置的不同,返回的值也将不同。
//
// 异常:
// T:System.ArgumentException:
// 默认字体或地区可选字体未安装在客户计算机上。
public static Font DefaultFont { get; }
//
// 摘要:
// 获取控件的默认前景色。
//
// 返回结果:
// 控件的默认前景 System.Drawing.Color。默认为 System.Drawing.SystemColors.ControlText。
public static Color DefaultForeColor { get; }
//
// 摘要:
// 获取一个值,该值指示哪一个修改键(Shift、Ctrl 和 Alt)处于按下的状态。
//
// 返回结果:
// System.Windows.Forms.Keys 值的按位组合。默认为 System.Windows.Forms.Keys.None。
public static Keys ModifierKeys { get; }
//
// 摘要:
// 获取一个值,该值指示哪一个鼠标按钮处于按下的状态。
//
// 返回结果:
// System.Windows.Forms.MouseButtons 枚举值的按位组合。默认为 System.Windows.Forms.MouseButtons.None。
public static MouseButtons MouseButtons { get; }
//
// 摘要:
// 获取鼠标光标的位置(以屏幕坐标表示)。
//
// 返回结果:
// 一个 System.Drawing.Point,它包含鼠标光标相对于屏幕左上角的坐标。
public static Point MousePosition { get; }
protected static ImeMode PropagatingImeMode { get; }
//
// 摘要:
// 获取分配给该控件的 System.Windows.Forms.AccessibleObject。
//
// 返回结果:
// 分配给该控件的 System.Windows.Forms.AccessibleObject。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRDescriptionAttribute("ControlAccessibilityObjectDescr")]
public AccessibleObject AccessibilityObject { get; }
//
// 摘要:
// 获取或设置控件的默认操作说明,供辅助功能客户端应用程序使用。
//
// 返回结果:
// 控件的默认操作说明,供辅助功能客户端应用程序使用。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("CatAccessibility")]
[SRDescriptionAttribute("ControlAccessibleDefaultActionDescr")]
public string AccessibleDefaultActionDescription { get; set; }
//
// 摘要:
// 获取或设置辅助功能客户端应用程序使用的控件说明。
//
// 返回结果:
// 辅助功能客户端应用程序使用的控件说明。默认为 null。
[DefaultValue(null)]
[Localizable(true)]
[SRCategoryAttribute("CatAccessibility")]
[SRDescriptionAttribute("ControlAccessibleDescriptionDescr")]
public string AccessibleDescription { get; set; }
//
// 摘要:
// 获取或设置辅助功能客户端应用程序所使用的控件名称。
//
// 返回结果:
// 辅助功能客户端应用程序所使用的控件名称。默认为 null。
[DefaultValue(null)]
[Localizable(true)]
[SRCategoryAttribute("CatAccessibility")]
[SRDescriptionAttribute("ControlAccessibleNameDescr")]
public string AccessibleName { get; set; }
//
// 摘要:
// 获取或设置控件的辅助性角色
//
// 返回结果:
// System.Windows.Forms.AccessibleRole 值之一。默认为 Default。
//
// 异常:
// T:System.ComponentModel.InvalidEnumArgumentException:
// 分配的值不是 System.Windows.Forms.AccessibleRole 值之一。
[DefaultValue(AccessibleRole.Default)]
[SRCategoryAttribute("CatAccessibility")]
[SRDescriptionAttribute("ControlAccessibleRoleDescr")]
public AccessibleRole AccessibleRole { get; set; }
//
// 摘要:
// 获取或设置一个值,该值指示控件是否可以接受用户拖放到它上面的数据。
//
// 返回结果:
// 如果控件允许拖放操作,则为 true;否则为 false。默认为 false。
[DefaultValue(false)]
[SRCategoryAttribute("CatBehavior")]
[SRDescriptionAttribute("ControlAllowDropDescr")]
public virtual bool AllowDrop { get; set; }
//
// 摘要:
// 获取或设置控件绑定到的容器的边缘并确定控件如何随其父级一起调整大小。
//
// 返回结果:
// System.Windows.Forms.AnchorStyles 值的按位组合。默认值是 Top 和 Left。
[DefaultValue(AnchorStyles.Top | AnchorStyles.Left)]
[Localizable(true)]
[RefreshProperties(RefreshProperties.Repaint)]
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlAnchorDescr")]
public virtual AnchorStyles Anchor { get; set; }
//
// 摘要:
// 获取或设置一个值,该值指示在 System.Windows.Forms.ScrollableControl.ScrollControlIntoView(System.Windows.Forms.Control)
// 中将控件滚动到何处。
//
// 返回结果:
// 一个指定滚动位置的 System.Drawing.Point。默认为控件的左上角。
[Browsable(false)]
[DefaultValue(typeof(Point), "0, 0")]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public virtual Point AutoScrollOffset { get; set; }
//
// 摘要:
// 此属性与此类无关。
//
// 返回结果:
// 如果已启用,则为 true;否则为 false。
[Browsable(false)]
[DefaultValue(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Never)]
[Localizable(true)]
[RefreshProperties(RefreshProperties.All)]
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlAutoSizeDescr")]
public virtual bool AutoSize { get; set; }
//
// 摘要:
// 获取或设置控件的背景色。
//
// 返回结果:
// 表示控件背景色的 System.Drawing.Color。默认为 System.Windows.Forms.Control.DefaultBackColor
// 属性的值。
[DispId(-)]
[SRCategoryAttribute("CatAppearance")]
[SRDescriptionAttribute("ControlBackColorDescr")]
public virtual Color BackColor { get; set; }
//
// 摘要:
// 获取或设置在控件中显示的背景图像。
//
// 返回结果:
// 一个 System.Drawing.Image,它表示在控件的背景中显示的图像。
[DefaultValue(null)]
[Localizable(true)]
[SRCategoryAttribute("CatAppearance")]
[SRDescriptionAttribute("ControlBackgroundImageDescr")]
public virtual Image BackgroundImage { get; set; }
//
// 摘要:
// 获取或设置在 System.Windows.Forms.ImageLayout 枚举中定义的背景图像布局。
//
// 返回结果:
// System.Windows.Forms.ImageLayout 的以下值之一:System.Windows.Forms.ImageLayout.Center、System.Windows.Forms.ImageLayout.None、System.Windows.Forms.ImageLayout.Stretch、System.Windows.Forms.ImageLayout.Tile
// 和 System.Windows.Forms.ImageLayout.Zoom。System.Windows.Forms.ImageLayout.Tile
// 为默认值。
//
// 异常:
// T:System.ComponentModel.InvalidEnumArgumentException:
// 指定的枚举值不存在。
[DefaultValue(ImageLayout.Tile)]
[Localizable(true)]
[SRCategoryAttribute("CatAppearance")]
[SRDescriptionAttribute("ControlBackgroundImageLayoutDescr")]
public virtual ImageLayout BackgroundImageLayout { get; set; }
//
// 摘要:
// 获取或设置控件的 System.Windows.Forms.BindingContext。
//
// 返回结果:
// 控件的 System.Windows.Forms.BindingContext。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRDescriptionAttribute("ControlBindingContextDescr")]
public virtual BindingContext BindingContext { get; set; }
//
// 摘要:
// 获取控件下边缘与其容器的工作区上边缘之间的距离(以像素为单位)。
//
// 返回结果:
// System.Int32 表示控件下边缘与其容器的工作区上边缘之间的距离(以像素为单位)。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlBottomDescr")]
public int Bottom { get; }
//
// 摘要:
// 获取或设置控件(包括其非工作区元素)相对于其父控件的大小和位置(以像素为单位)。
//
// 返回结果:
// 相对于父控件的 System.Drawing.Rectangle,表示控件(包括其非工作区元素)的大小和位置(以像素为单位)。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlBoundsDescr")]
public Rectangle Bounds { get; set; }
//
// 摘要:
// 获取一个值,该值指示控件是否可以接收焦点。
//
// 返回结果:
// 如果控件可以接收焦点,则为 true;否则为 false。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("CatFocus")]
[SRDescriptionAttribute("ControlCanFocusDescr")]
public bool CanFocus { get; }
//
// 摘要:
// 获取一个值,该值指示是否可以选中控件。
//
// 返回结果:
// 如果控件可以选中,则为 true;否则为 false。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("CatFocus")]
[SRDescriptionAttribute("ControlCanSelectDescr")]
public bool CanSelect { get; }
//
// 摘要:
// 获取或设置一个值,该值指示控件是否已捕获鼠标。
//
// 返回结果:
// 如果控件已捕获鼠标,则为 true;否则为 false。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("CatFocus")]
[SRDescriptionAttribute("ControlCaptureDescr")]
public bool Capture { get; set; }
//
// 摘要:
// 获取或设置一个值,该值指示控件是否会引起在任何需要在接收焦点时执行验证的控件上执行验证。
//
// 返回结果:
// 如果控件引起在任何需要在接收焦点时执行验证的控件上执行验证,则为 true;否则为 false。默认为 true。
[DefaultValue(true)]
[SRCategoryAttribute("CatFocus")]
[SRDescriptionAttribute("ControlCausesValidationDescr")]
public bool CausesValidation { get; set; }
//
// 摘要:
// 获取表示控件的工作区的矩形。
//
// 返回结果:
// 一个 System.Drawing.Rectangle,它表示控件的工作区。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlClientRectangleDescr")]
public Rectangle ClientRectangle { get; }
//
// 摘要:
// 获取或设置控件的工作区的高度和宽度。
//
// 返回结果:
// 一个 System.Drawing.Size,表示控件的工作区的维数。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlClientSizeDescr")]
public Size ClientSize { get; set; }
//
// 摘要:
// 获取包含控件的应用程序的公司名称或创建者。
//
// 返回结果:
// 包含控件的应用程序的公司名称或创建者。
[Browsable(false)]
[Description("ControlCompanyNameDescr")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public string CompanyName { get; }
//
// 摘要:
// 获取一个值,该值指示控件或它的一个子控件当前是否有输入焦点。
//
// 返回结果:
// 如果控件或它的一个子控件当前已经有输入焦点,则为 true;否则为 false
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRDescriptionAttribute("ControlContainsFocusDescr")]
public bool ContainsFocus { get; }
//
// 摘要:
// 获取或设置与控件关联的快捷菜单。
//
// 返回结果:
// 一个 System.Windows.Forms.ContextMenu,它表示与控件关联的快捷菜单。
[Browsable(false)]
[DefaultValue(null)]
[SRCategoryAttribute("CatBehavior")]
[SRDescriptionAttribute("ControlContextMenuDescr")]
public virtual ContextMenu ContextMenu { get; set; }
//
// 摘要:
// 获取或设置与此控件关联的 System.Windows.Forms.ContextMenuStrip。
//
// 返回结果:
// 该控件的 System.Windows.Forms.ContextMenuStrip;如果没有 System.Windows.Forms.ContextMenuStrip,则为
// null。默认为 null。
[DefaultValue(null)]
[SRCategoryAttribute("CatBehavior")]
[SRDescriptionAttribute("ControlContextMenuDescr")]
public virtual ContextMenuStrip ContextMenuStrip { get; set; }
//
// 摘要:
// 获取包含在控件内的控件的集合。
//
// 返回结果:
// 一个 System.Windows.Forms.Control.ControlCollection,它表示控件内包含的控件的集合。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
[SRDescriptionAttribute("ControlControlsDescr")]
public ControlCollection Controls { get; }
//
// 摘要:
// 获取一个值,该值指示控件是否已经创建。
//
// 返回结果:
// 如果已创建控件,则为 true;否则为 false。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRDescriptionAttribute("ControlCreatedDescr")]
public bool Created { get; }
//
// 摘要:
// 获取或设置当鼠标指针位于控件上时显示的光标。
//
// 返回结果:
// 一个 System.Windows.Forms.Cursor,表示当鼠标指针位于控件上时显示的光标。
[AmbientValue(null)]
[SRCategoryAttribute("CatAppearance")]
[SRDescriptionAttribute("ControlCursorDescr")]
public virtual Cursor Cursor { get; set; }
//
// 摘要:
// 为该控件获取数据绑定。
//
// 返回结果:
// System.Windows.Forms.ControlBindingsCollection,它包含该控件的 System.Windows.Forms.Binding
// 对象。
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
[ParenthesizePropertyName(true)]
[RefreshProperties(RefreshProperties.All)]
[SRCategoryAttribute("CatData")]
[SRDescriptionAttribute("ControlBindingsDescr")]
public ControlBindingsCollection DataBindings { get; }
//
// 摘要:
// 获取表示控件的显示区域的矩形。
//
// 返回结果:
// 一个 System.Drawing.Rectangle,它表示控件的显示区域。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRDescriptionAttribute("ControlDisplayRectangleDescr")]
public virtual Rectangle DisplayRectangle { get; }
//
// 摘要:
// 获取一个值,该值指示 System.Windows.Forms.Control 基类是否在释放进程中。
//
// 返回结果:
// 如果 System.Windows.Forms.Control 基类在释放进程中,则为 true;否则为 false。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRDescriptionAttribute("ControlDisposingDescr")]
public bool Disposing { get; }
//
// 摘要:
// 获取或设置哪些控件边框停靠到其父控件并确定控件如何随其父级一起调整大小。
//
// 返回结果:
// System.Windows.Forms.DockStyle 值之一。默认为 System.Windows.Forms.DockStyle.None。
//
// 异常:
// T:System.ComponentModel.InvalidEnumArgumentException:
// 分配的值不是 System.Windows.Forms.DockStyle 值之一。
[DefaultValue(DockStyle.None)]
[Localizable(true)]
[RefreshProperties(RefreshProperties.Repaint)]
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlDockDescr")]
public virtual DockStyle Dock { get; set; }
//
// 摘要:
// 获取或设置一个值,该值指示控件是否可以对用户交互作出响应。
//
// 返回结果:
// 如果控件可以对用户交互作出响应,则为 true;否则为 false。默认为 true。
[DispId(-)]
[Localizable(true)]
[SRCategoryAttribute("CatBehavior")]
[SRDescriptionAttribute("ControlEnabledDescr")]
public bool Enabled { get; set; }
//
// 摘要:
// 获取一个值,该值指示控件是否有输入焦点。
//
// 返回结果:
// 如果控件有焦点,则为 true;否则为 false。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRDescriptionAttribute("ControlFocusedDescr")]
public virtual bool Focused { get; }
//
// 摘要:
// 获取或设置控件显示的文字的字体。
//
// 返回结果:
// 要应用于由控件显示的文本的 System.Drawing.Font。默认为 System.Windows.Forms.Control.DefaultFont
// 属性的值。
[AmbientValue(null)]
[DispId(-)]
[Localizable(true)]
[SRCategoryAttribute("CatAppearance")]
[SRDescriptionAttribute("ControlFontDescr")]
public virtual Font Font { get; set; }
//
// 摘要:
// 获取或设置控件的前景色。
//
// 返回结果:
// 控件的前景 System.Drawing.Color。默认为 System.Windows.Forms.Control.DefaultForeColor
// 属性的值。
[DispId(-)]
[SRCategoryAttribute("CatAppearance")]
[SRDescriptionAttribute("ControlForeColorDescr")]
public virtual Color ForeColor { get; set; }
//
// 摘要:
// 获取控件绑定到的窗口句柄。
//
// 返回结果:
// 一个 System.IntPtr,包含控件的窗口句柄 (HWND)。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[DispId(-)]
[SRDescriptionAttribute("ControlHandleDescr")]
public IntPtr Handle { get; }
//
// 摘要:
// 获取一个值,该值指示控件是否包含一个或多个子控件。
//
// 返回结果:
// 如果控件包含一个或多个子控件,则为 true;否则为 false。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRDescriptionAttribute("ControlHasChildrenDescr")]
public bool HasChildren { get; }
//
// 摘要:
// 获取或设置控件的高度。
//
// 返回结果:
// 控件的高度(以像素为单位)。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Always)]
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlHeightDescr")]
public int Height { get; set; }
//
// 摘要:
// 获取或设置控件的输入法编辑器 (IME) 模式。
//
// 返回结果:
// System.Windows.Forms.ImeMode 值之一。默认为 System.Windows.Forms.ImeMode.Inherit。
//
// 异常:
// T:System.ComponentModel.InvalidEnumArgumentException:
// 所分配的值不是一个 System.Windows.Forms.ImeMode 枚举值。
[AmbientValue(ImeMode.Inherit)]
[Localizable(true)]
[SRCategoryAttribute("CatBehavior")]
[SRDescriptionAttribute("ControlIMEModeDescr")]
public ImeMode ImeMode { get; set; }
//
// 摘要:
// 获取一个值,该值指示调用方在对控件进行方法调用时是否必须调用 Invoke 方法,因为调用方位于创建控件所在的线程以外的线程中。
//
// 返回结果:
// 如果控件的 System.Windows.Forms.Control.Handle 是在与调用线程不同的线程上创建的(说明您必须通过 Invoke 方法对控件进行调用),则为
// true;否则为 false。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRDescriptionAttribute("ControlInvokeRequiredDescr")]
public bool InvokeRequired { get; }
//
// 摘要:
// 获取或设置一个值,该值指示控件对辅助功能应用程序是否可见。
//
// 返回结果:
// 如果控件对辅助功能应用程序可见,则为 true;否则为 false。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("CatBehavior")]
[SRDescriptionAttribute("ControlIsAccessibleDescr")]
public bool IsAccessible { get; set; }
//
// 摘要:
// 获取一个值,该值指示控件是否已经被释放。
//
// 返回结果:
// 如果控件已经被释放,则为 true;否则为 false。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRDescriptionAttribute("ControlDisposedDescr")]
public bool IsDisposed { get; }
//
// 摘要:
// 获取一个值,该值指示控件是否有与它关联的句柄。
//
// 返回结果:
// 如果已经为控件分配了句柄,则为 true;否则为 false。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRDescriptionAttribute("ControlHandleCreatedDescr")]
public bool IsHandleCreated { get; }
//
// 摘要:
// 获取一个值,该值指示此控件是否为镜像控件。
//
// 返回结果:
// 如果该控件是镜像控件,则为 true;否则为 false。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("IsMirroredDescr")]
public bool IsMirrored { get; }
//
// 摘要:
// 获取控件的布局引擎的缓存实例。
//
// 返回结果:
// 控件内容的 System.Windows.Forms.Layout.LayoutEngine。
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public virtual LayoutEngine LayoutEngine { get; }
//
// 摘要:
// 获取或设置控件左边缘与其容器的工作区左边缘之间的距离(以像素为单位)。
//
// 返回结果:
// System.Int32 表示控件左边缘与其容器的工作区左边缘之间的距离(以像素为单位)。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Always)]
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlLeftDescr")]
public int Left { get; set; }
//
// 摘要:
// 获取或设置该控件的左上角相对于其容器的左上角的坐标。
//
// 返回结果:
// System.Drawing.Point,它表示控件的左上角相对于其容器的左上角。
[Localizable(true)]
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlLocationDescr")]
public Point Location { get; set; }
//
// 摘要:
// 获取或设置控件之间的空间。
//
// 返回结果:
// 表示控件之间的间距的 System.Windows.Forms.Padding。
[Localizable(true)]
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlMarginDescr")]
public Padding Margin { get; set; }
//
// 摘要:
// 获取或设置大小,该大小是 System.Windows.Forms.Control.GetPreferredSize(System.Drawing.Size)
// 可以指定的上限。
//
// 返回结果:
// 类型为 System.Drawing.Size 的有序对,表示矩形的宽度和高度。
[AmbientValue(typeof(Size), "0, 0")]
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlMaximumSizeDescr")]
public virtual Size MaximumSize { get; set; }
//
// 摘要:
// 获取或设置大小,该大小是 System.Windows.Forms.Control.GetPreferredSize(System.Drawing.Size)
// 可以指定的下限。
//
// 返回结果:
// 类型为 System.Drawing.Size 的有序对,表示矩形的宽度和高度。
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlMinimumSizeDescr")]
public virtual Size MinimumSize { get; set; }
//
// 摘要:
// 获取或设置控件的名称。
//
// 返回结果:
// 控件的名称。默认值为空字符串 ("")。
[Browsable(false)]
public string Name { get; set; }
//
// 摘要:
// 获取或设置控件内的空白。
//
// 返回结果:
// 表示控件的内部间距特征的 System.Windows.Forms.Padding。
[Localizable(true)]
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlPaddingDescr")]
public Padding Padding { get; set; }
//
// 摘要:
// 获取或设置控件的父容器。
//
// 返回结果:
// 一个 System.Windows.Forms.Control,表示控件的父控件或容器控件。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[SRCategoryAttribute("CatBehavior")]
[SRDescriptionAttribute("ControlParentDescr")]
public Control Parent { get; set; }
//
// 摘要:
// 获取可以容纳控件的矩形区域的大小。
//
// 返回结果:
// 包含高度和宽度的 System.Drawing.Size(以像素为单位)。
[Browsable(false)]
public Size PreferredSize { get; }
//
// 摘要:
// 获取包含控件的程序集的产品名称。
//
// 返回结果:
// 包含控件的程序集的产品名称。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRDescriptionAttribute("ControlProductNameDescr")]
public string ProductName { get; }
//
// 摘要:
// 获取包含控件的程序集的版本。
//
// 返回结果:
// 包含控件的程序集的文件版本。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRDescriptionAttribute("ControlProductVersionDescr")]
public string ProductVersion { get; }
//
// 摘要:
// 获取一个值,该值指示控件当前是否在重新创建其句柄。
//
// 返回结果:
// 如果控件当前在重新创建其句柄,则为 true;否则为 false。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("CatBehavior")]
[SRDescriptionAttribute("ControlRecreatingHandleDescr")]
public bool RecreatingHandle { get; }
//
// 摘要:
// 获取或设置与控件关联的窗口区域。
//
// 返回结果:
// 与控件关联的窗口 System.Drawing.Region。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlRegionDescr")]
public Region Region { get; set; }
//
// 摘要:
// 获取控件右边缘与其容器的工作区左边缘之间的距离(以像素为单位)。
//
// 返回结果:
// System.Int32 表示控件右边缘与其容器的工作区左边缘之间的距离(以像素为单位)。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlRightDescr")]
public int Right { get; }
//
// 摘要:
// 获取或设置一个值,该值指示是否将控件的元素对齐以支持使用从右向左的字体的区域设置。
//
// 返回结果:
// System.Windows.Forms.RightToLeft 值之一。默认为 System.Windows.Forms.RightToLeft.Inherit。
//
// 异常:
// T:System.ComponentModel.InvalidEnumArgumentException:
// 分配的值不是 System.Windows.Forms.RightToLeft 值之一。
[AmbientValue(RightToLeft.Inherit)]
[Localizable(true)]
[SRCategoryAttribute("CatAppearance")]
[SRDescriptionAttribute("ControlRightToLeftDescr")]
public virtual RightToLeft RightToLeft { get; set; }
//
// 摘要:
// 获取或设置控件的站点。
//
// 返回结果:
// 与 System.Windows.Forms.Control 关联的 System.ComponentModel.ISite(如果有的话)。
[EditorBrowsable(EditorBrowsableState.Advanced)]
public override ISite Site { get; set; }
//
// 摘要:
// 获取或设置控件的高度和宽度。
//
// 返回结果:
// System.Drawing.Size,表示控件的高度和宽度(以像素为单位)。
[Localizable(true)]
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlSizeDescr")]
public Size Size { get; set; }
//
// 摘要:
// 获取或设置在控件的容器的控件的 Tab 键顺序。
//
// 返回结果:
// 控件容器中控件集合内的控件的索引值。容器中包括的控件以 Tab 键顺序排列。
[Localizable(true)]
[MergableProperty(false)]
[SRCategoryAttribute("CatBehavior")]
[SRDescriptionAttribute("ControlTabIndexDescr")]
public int TabIndex { get; set; }
//
// 摘要:
// 获取或设置一个值,该值指示用户能否使用 Tab 键将焦点放到该控件上。
//
// 返回结果:
// 如果用户可以用 Tab 键将焦点放到此控件上,则为 true;反之,则为 false。默认为 true。 说明:对于 System.Windows.Forms.Form
// 类的实例,该属性将始终返回 true。
[DefaultValue(true)]
[DispId(-)]
[SRCategoryAttribute("CatBehavior")]
[SRDescriptionAttribute("ControlTabStopDescr")]
public bool TabStop { get; set; }
//
// 摘要:
// 获取或设置包含有关控件的数据的对象。
//
// 返回结果:
// 一个 System.Object,它包含有关控件的数据。默认为 null。
[Bindable(true)]
[DefaultValue(null)]
[Localizable(false)]
[SRCategoryAttribute("CatData")]
[SRDescriptionAttribute("ControlTagDescr")]
[TypeConverter(typeof(StringConverter))]
public object Tag { get; set; }
//
// 摘要:
// 获取或设置与此控件关联的文本。
//
// 返回结果:
// 与该控件关联的文本。
[Bindable(true)]
[DispId(-)]
[Localizable(true)]
[SRCategoryAttribute("CatAppearance")]
[SRDescriptionAttribute("ControlTextDescr")]
public virtual string Text { get; set; }
//
// 摘要:
// 获取或设置控件上边缘与其容器的工作区上边缘之间的距离(以像素为单位)。
//
// 返回结果:
// System.Int32 表示控件下边缘与其容器的工作区上边缘之间的距离(以像素为单位)。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Always)]
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlTopDescr")]
public int Top { get; set; }
//
// 摘要:
// 获取没有另一个 Windows 窗体控件作为其父级的父控件。通常,这是控件所在的最外面的 System.Windows.Forms.Form。
//
// 返回结果:
// System.Windows.Forms.Control,它表示包含当前控件的*控件。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("CatBehavior")]
[SRDescriptionAttribute("ControlTopLevelControlDescr")]
public Control TopLevelControl { get; }
//
// 摘要:
// 获取或设置一个值,该值指示是否将等待光标用于当前控件以及所有子控件。
//
// 返回结果:
// 将等待光标用于当前控件以及所有子控件时,为 true;否则为 false。默认为 false。
[Browsable(true)]
[DefaultValue(false)]
[EditorBrowsable(EditorBrowsableState.Always)]
[SRCategoryAttribute("CatAppearance")]
[SRDescriptionAttribute("ControlUseWaitCursorDescr")]
public bool UseWaitCursor { get; set; }
//
// 摘要:
// 获取或设置一个值,该值指示是否显示该控件及其所有父控件。
//
// 返回结果:
// 如果显示该控件及其所有父控件,则为 true;否则为 false。默认为 true。
[Localizable(true)]
[SRCategoryAttribute("CatBehavior")]
[SRDescriptionAttribute("ControlVisibleDescr")]
public bool Visible { get; set; }
//
// 摘要:
// 获取或设置控件的宽度。
//
// 返回结果:
// 控件的宽度(以像素为单位)。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Always)]
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlWidthDescr")]
public int Width { get; set; }
//
// 摘要:
// 此属性与此类无关。
//
// 返回结果:
// 一个 System.Windows.Forms.IWindowTarget。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Never)]
[SRCategoryAttribute("CatBehavior")]
[SRDescriptionAttribute("ControlWindowTargetDescr")]
public IWindowTarget WindowTarget { get; set; }
//
// 摘要:
// 获取一个用以指示是否可以将 System.Windows.Forms.Control.ImeMode 属性设置为活动值的值,以启用 IME 支持。
//
// 返回结果:
// 在所有情况下均为 true。
protected virtual bool CanEnableIme { get; }
//
// 摘要:
// 确定是否可以在控件上引发事件。
//
// 返回结果:
// 如果控件是作为其事件未被冻结的 ActiveX 控件承载的,则为 true;否则为 false。
protected override bool CanRaiseEvents { get; }
//
// 摘要:
// 获取创建控件句柄时所需要的创建参数。
//
// 返回结果:
// System.Windows.Forms.CreateParams,包含创建控件的句柄时所需的创建参数。
protected virtual CreateParams CreateParams { get; }
//
// 摘要:
// 获取或设置控件的默认光标。
//
// 返回结果:
// 一个 System.Windows.Forms.Cursor 类型的对象,表示当前默认光标。
protected virtual Cursor DefaultCursor { get; }
//
// 摘要:
// 获取控件支持的输入法编辑器 (IME) 模式。
//
// 返回结果:
// System.Windows.Forms.ImeMode 值之一。
protected virtual ImeMode DefaultImeMode { get; }
//
// 摘要:
// 获取控件之间默认情况下指定的间距(以像素为单位)。
//
// 返回结果:
// 表示控件之间的默认间距的 System.Windows.Forms.Padding。
protected virtual Padding DefaultMargin { get; }
//
// 摘要:
// 获取以像素为单位的长度和高度,此长度和高度被指定为控件的默认最大大小。
//
// 返回结果:
// 一个表示控件大小的 System.Drawing.Point.#ctor(System.Drawing.Size)。
protected virtual Size DefaultMaximumSize { get; }
//
// 摘要:
// 获取以像素为单位的长度和高度,此长度和高度被指定为控件的默认最小大小。
//
// 返回结果:
// 一个表示控件大小的 System.Drawing.Point.#ctor(System.Drawing.Size)。
protected virtual Size DefaultMinimumSize { get; }
//
// 摘要:
// 获取控件内容的内部间距(以像素为单位)。
//
// 返回结果:
// 表示控件内容的内部间距的 System.Windows.Forms.Padding。
protected virtual Padding DefaultPadding { get; }
//
// 摘要:
// 获取控件的默认大小。
//
// 返回结果:
// 控件的默认 System.Drawing.Size。
protected virtual Size DefaultSize { get; }
//
// 摘要:
// 获取或设置一个值,该值指示此控件是否应使用辅助缓冲区重绘其图面,以减少或避免闪烁。
//
// 返回结果:
// 如果应使用双缓冲绘制控件的图面,则为 true;否则为 false。
[SRCategoryAttribute("CatBehavior")]
[SRDescriptionAttribute("ControlDoubleBufferedDescr")]
protected virtual bool DoubleBuffered { get; set; }
//
// 摘要:
// 获取或设置控件的字体的高度。
//
// 返回结果:
// 控件的 System.Drawing.Font 的高度(以像素为单位)。
protected int FontHeight { get; set; }
protected virtual ImeMode ImeModeBase { get; set; }
//
// 摘要:
// 获取或设置一个值,该值指示控件在调整大小时是否重绘自己。
//
// 返回结果:
// 如果控件在调整大小时重绘自己,则为 true;否则为 false。
[SRDescriptionAttribute("ControlResizeRedrawDescr")]
protected bool ResizeRedraw { get; set; }
//
// 摘要:
// 获取一个值,该值确定子控件的缩放。
//
// 返回结果:
// 如果在调用该控件上的 System.Windows.Forms.Control.Scale(System.Single) 方法时将缩放子控件,则为 true;否则为
// false。默认为 true。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual bool ScaleChildren { get; }
//
// 摘要:
// 此属性现已过时。
//
// 返回结果:
// 如果控件从右向左呈现,则为 true;否则为 false。默认为 false。
[Obsolete("This property has been deprecated. Please use RightToLeft instead. http://go.microsoft.com/fwlink/?linkid=14202")]
protected internal bool RenderRightToLeft { get; }
//
// 摘要:
// 获取一个值,该值指示控件是否应显示聚焦框。
//
// 返回结果:
// 如果控件应显示聚焦框,则为 true;否则为 false。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected internal virtual bool ShowFocusCues { get; }
//
// 摘要:
// 获取一个值,该值指示用户界面是否处于适当的状态以显示或隐藏键盘快捷键。
//
// 返回结果:
// 如果键盘快捷键可见,则为 true;否则为 false。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected internal virtual bool ShowKeyboardCues { get; } //
// 摘要:
// 此事件与此类无关。
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
[SRCategoryAttribute("CatPropertyChanged")]
[SRDescriptionAttribute("ControlOnAutoSizeChangedDescr")]
public event EventHandler AutoSizeChanged;
//
// 摘要:
// 当 System.Windows.Forms.Control.BackColor 属性的值更改时发生。
[SRCategoryAttribute("CatPropertyChanged")]
[SRDescriptionAttribute("ControlOnBackColorChangedDescr")]
public event EventHandler BackColorChanged;
//
// 摘要:
// 当 System.Windows.Forms.Control.BackgroundImage 属性的值更改时发生。
[SRCategoryAttribute("CatPropertyChanged")]
[SRDescriptionAttribute("ControlOnBackgroundImageChangedDescr")]
public event EventHandler BackgroundImageChanged;
//
// 摘要:
// 当 System.Windows.Forms.Control.BackgroundImageLayout 属性更改时发生。
[SRCategoryAttribute("CatPropertyChanged")]
[SRDescriptionAttribute("ControlOnBackgroundImageLayoutChangedDescr")]
public event EventHandler BackgroundImageLayoutChanged;
//
// 摘要:
// 当 System.Windows.Forms.BindingContext 属性的值更改时发生。
[SRCategoryAttribute("CatPropertyChanged")]
[SRDescriptionAttribute("ControlOnBindingContextChangedDescr")]
public event EventHandler BindingContextChanged;
//
// 摘要:
// 当 System.Windows.Forms.Control.CausesValidation 属性的值更改时发生。
[SRCategoryAttribute("CatPropertyChanged")]
[SRDescriptionAttribute("ControlOnCausesValidationChangedDescr")]
public event EventHandler CausesValidationChanged;
//
// 摘要:
// 在焦点或键盘用户界面 (UI) 提示更改时发生。
[SRCategoryAttribute("CatBehavior")]
[SRDescriptionAttribute("ControlOnChangeUICuesDescr")]
public event UICuesEventHandler ChangeUICues;
//
// 摘要:
// 在单击控件时发生。
[SRCategoryAttribute("CatAction")]
[SRDescriptionAttribute("ControlOnClickDescr")]
public event EventHandler Click;
//
// 摘要:
// 当 System.Windows.Forms.Control.ClientSize 属性的值更改时发生。
[SRCategoryAttribute("CatPropertyChanged")]
[SRDescriptionAttribute("ControlOnClientSizeChangedDescr")]
public event EventHandler ClientSizeChanged;
//
// 摘要:
// 当 System.Windows.Forms.Control.ContextMenu 属性的值更改时发生。
[Browsable(false)]
[SRCategoryAttribute("CatPropertyChanged")]
[SRDescriptionAttribute("ControlOnContextMenuChangedDescr")]
public event EventHandler ContextMenuChanged;
//
// 摘要:
// 当 System.Windows.Forms.Control.ContextMenuStrip 属性的值更改时发生。
[SRCategoryAttribute("CatPropertyChanged")]
[SRDescriptionAttribute("ControlContextMenuStripChangedDescr")]
public event EventHandler ContextMenuStripChanged;
//
// 摘要:
// 在将新控件添加到 System.Windows.Forms.Control.ControlCollection 时发生。
[Browsable(true)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("CatBehavior")]
[SRDescriptionAttribute("ControlOnControlAddedDescr")]
public event ControlEventHandler ControlAdded;
//
// 摘要:
// 在从 System.Windows.Forms.Control.ControlCollection 移除控件时发生。
[Browsable(true)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("CatBehavior")]
[SRDescriptionAttribute("ControlOnControlRemovedDescr")]
public event ControlEventHandler ControlRemoved;
//
// 摘要:
// 当 System.Windows.Forms.Control.Cursor 属性的值更改时发生。
[SRCategoryAttribute("CatPropertyChanged")]
[SRDescriptionAttribute("ControlOnCursorChangedDescr")]
public event EventHandler CursorChanged;
//
// 摘要:
// 当 System.Windows.Forms.Control.Dock 属性的值更改时发生。
[SRCategoryAttribute("CatPropertyChanged")]
[SRDescriptionAttribute("ControlOnDockChangedDescr")]
public event EventHandler DockChanged;
//
// 摘要:
// 在双击控件时发生。
[SRCategoryAttribute("CatAction")]
[SRDescriptionAttribute("ControlOnDoubleClickDescr")]
public event EventHandler DoubleClick;
//
// 摘要:
// 在完成拖放操作时发生。
[SRCategoryAttribute("CatDragDrop")]
[SRDescriptionAttribute("ControlOnDragDropDescr")]
public event DragEventHandler DragDrop;
//
// 摘要:
// 在将对象拖入控件的边界时发生。
[SRCategoryAttribute("CatDragDrop")]
[SRDescriptionAttribute("ControlOnDragEnterDescr")]
public event DragEventHandler DragEnter;
//
// 摘要:
// 在将对象拖出控件的边界时发生。
[SRCategoryAttribute("CatDragDrop")]
[SRDescriptionAttribute("ControlOnDragLeaveDescr")]
public event EventHandler DragLeave;
//
// 摘要:
// 在将对象拖到控件的边界上发生。
[SRCategoryAttribute("CatDragDrop")]
[SRDescriptionAttribute("ControlOnDragOverDescr")]
public event DragEventHandler DragOver;
//
// 摘要:
// 在 System.Windows.Forms.Control.Enabled 属性值更改后发生。
[SRCategoryAttribute("CatPropertyChanged")]
[SRDescriptionAttribute("ControlOnEnabledChangedDescr")]
public event EventHandler EnabledChanged;
//
// 摘要:
// 进入控件时发生。
[SRCategoryAttribute("CatFocus")]
[SRDescriptionAttribute("ControlOnEnterDescr")]
public event EventHandler Enter;
//
// 摘要:
// 在 System.Windows.Forms.Control.Font 属性值更改时发生。
[SRCategoryAttribute("CatPropertyChanged")]
[SRDescriptionAttribute("ControlOnFontChangedDescr")]
public event EventHandler FontChanged;
//
// 摘要:
// 在 System.Windows.Forms.Control.ForeColor 属性值更改时发生。
[SRCategoryAttribute("CatPropertyChanged")]
[SRDescriptionAttribute("ControlOnForeColorChangedDescr")]
public event EventHandler ForeColorChanged;
//
// 摘要:
// 在执行拖动操作期间发生。
[SRCategoryAttribute("CatDragDrop")]
[SRDescriptionAttribute("ControlOnGiveFeedbackDescr")]
public event GiveFeedbackEventHandler GiveFeedback;
//
// 摘要:
// 在控件接收焦点时发生。
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("CatFocus")]
[SRDescriptionAttribute("ControlOnGotFocusDescr")]
public event EventHandler GotFocus;
//
// 摘要:
// 在为控件创建句柄时发生。
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("CatPrivate")]
[SRDescriptionAttribute("ControlOnCreateHandleDescr")]
public event EventHandler HandleCreated;
//
// 摘要:
// 在控件的句柄处于销毁过程中时发生。
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("CatPrivate")]
[SRDescriptionAttribute("ControlOnDestroyHandleDescr")]
public event EventHandler HandleDestroyed;
//
// 摘要:
// 当用户请求控件的帮助时发生。
[SRCategoryAttribute("CatBehavior")]
[SRDescriptionAttribute("ControlOnHelpDescr")]
public event HelpEventHandler HelpRequested;
//
// 摘要:
// 在 System.Windows.Forms.Control.ImeMode 属性更改后发生。
[SRDescriptionAttribute("ControlOnImeModeChangedDescr")]
[WinCategoryAttribute("Behavior")]
public event EventHandler ImeModeChanged;
//
// 摘要:
// 在控件的显示需要重绘时发生。
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("CatAppearance")]
[SRDescriptionAttribute("ControlOnInvalidateDescr")]
public event InvalidateEventHandler Invalidated;
//
// 摘要:
// 在控件有焦点的情况下按下键时发生。
[SRCategoryAttribute("CatKey")]
[SRDescriptionAttribute("ControlOnKeyDownDescr")]
public event KeyEventHandler KeyDown;
//
// 摘要:
// 在控件有焦点的情况下按下键时发生。
[SRCategoryAttribute("CatKey")]
[SRDescriptionAttribute("ControlOnKeyPressDescr")]
public event KeyPressEventHandler KeyPress;
//
// 摘要:
// 在控件有焦点的情况下释放键时发生。
[SRCategoryAttribute("CatKey")]
[SRDescriptionAttribute("ControlOnKeyUpDescr")]
public event KeyEventHandler KeyUp;
//
// 摘要:
// 在控件应重新定位其子控件时发生。
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlOnLayoutDescr")]
public event LayoutEventHandler Layout;
//
// 摘要:
// 在输入焦点离开控件时发生。
[SRCategoryAttribute("CatFocus")]
[SRDescriptionAttribute("ControlOnLeaveDescr")]
public event EventHandler Leave;
//
// 摘要:
// 在 System.Windows.Forms.Control.Location 属性值更改后发生。
[SRCategoryAttribute("CatPropertyChanged")]
[SRDescriptionAttribute("ControlOnLocationChangedDescr")]
public event EventHandler LocationChanged;
//
// 摘要:
// 当控件失去焦点时发生。
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("CatFocus")]
[SRDescriptionAttribute("ControlOnLostFocusDescr")]
public event EventHandler LostFocus;
//
// 摘要:
// 在控件边距更改时发生。
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlOnMarginChangedDescr")]
public event EventHandler MarginChanged;
//
// 摘要:
// 当控件失去或获得鼠标捕获时发生。
[SRCategoryAttribute("CatAction")]
[SRDescriptionAttribute("ControlOnMouseCaptureChangedDescr")]
public event EventHandler MouseCaptureChanged;
//
// 摘要:
// 在鼠标单击该控件时发生。
[SRCategoryAttribute("CatAction")]
[SRDescriptionAttribute("ControlOnMouseClickDescr")]
public event MouseEventHandler MouseClick;
//
// 摘要:
// 当用鼠标双击控件时发生。
[SRCategoryAttribute("CatAction")]
[SRDescriptionAttribute("ControlOnMouseDoubleClickDescr")]
public event MouseEventHandler MouseDoubleClick;
//
// 摘要:
// 当鼠标指针位于控件上并按下鼠标键时发生。
[SRCategoryAttribute("CatMouse")]
[SRDescriptionAttribute("ControlOnMouseDownDescr")]
public event MouseEventHandler MouseDown;
//
// 摘要:
// 在鼠标指针进入控件时发生。
[SRCategoryAttribute("CatMouse")]
[SRDescriptionAttribute("ControlOnMouseEnterDescr")]
public event EventHandler MouseEnter;
//
// 摘要:
// 在鼠标指针停放在控件上时发生。
[SRCategoryAttribute("CatMouse")]
[SRDescriptionAttribute("ControlOnMouseHoverDescr")]
public event EventHandler MouseHover;
//
// 摘要:
// 在鼠标指针离开控件时发生。
[SRCategoryAttribute("CatMouse")]
[SRDescriptionAttribute("ControlOnMouseLeaveDescr")]
public event EventHandler MouseLeave;
//
// 摘要:
// 在鼠标指针移到控件上时发生。
[SRCategoryAttribute("CatMouse")]
[SRDescriptionAttribute("ControlOnMouseMoveDescr")]
public event MouseEventHandler MouseMove;
//
// 摘要:
// 在鼠标指针在控件上并释放鼠标键时发生。
[SRCategoryAttribute("CatMouse")]
[SRDescriptionAttribute("ControlOnMouseUpDescr")]
public event MouseEventHandler MouseUp;
//
// 摘要:
// 在移动鼠标滚轮并且控件有焦点时发生。
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("CatMouse")]
[SRDescriptionAttribute("ControlOnMouseWheelDescr")]
public event MouseEventHandler MouseWheel;
//
// 摘要:
// 在移动控件时发生。
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlOnMoveDescr")]
public event EventHandler Move;
//
// 摘要:
// 在控件空白区更改时发生。
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlOnPaddingChangedDescr")]
public event EventHandler PaddingChanged;
//
// 摘要:
// 在重绘控件时发生。
[SRCategoryAttribute("CatAppearance")]
[SRDescriptionAttribute("ControlOnPaintDescr")]
public event PaintEventHandler Paint;
//
// 摘要:
// 在 System.Windows.Forms.Control.Parent 属性值更改时发生。
[SRCategoryAttribute("CatPropertyChanged")]
[SRDescriptionAttribute("ControlOnParentChangedDescr")]
public event EventHandler ParentChanged;
//
// 摘要:
// 在焦点位于此控件上的情况下,当有按键动作时发生(在 System.Windows.Forms.Control.KeyDown 事件之前发生)。
[SRCategoryAttribute("CatKey")]
[SRDescriptionAttribute("PreviewKeyDownDescr")]
public event PreviewKeyDownEventHandler PreviewKeyDown;
//
// 摘要:
// 在 System.Windows.Forms.AccessibleObject 为辅助功能应用程序提供帮助时发生。
[SRCategoryAttribute("CatBehavior")]
[SRDescriptionAttribute("ControlOnQueryAccessibilityHelpDescr")]
public event QueryAccessibilityHelpEventHandler QueryAccessibilityHelp;
//
// 摘要:
// 在拖放操作期间发生,并且允许拖动源确定是否应取消拖放操作。
[SRCategoryAttribute("CatDragDrop")]
[SRDescriptionAttribute("ControlOnQueryContinueDragDescr")]
public event QueryContinueDragEventHandler QueryContinueDrag;
//
// 摘要:
// 当 System.Windows.Forms.Control.Region 属性的值更改时发生。
[SRCategoryAttribute("CatPropertyChanged")]
[SRDescriptionAttribute("ControlRegionChangedDescr")]
public event EventHandler RegionChanged;
//
// 摘要:
// 在调整控件大小时发生。
[EditorBrowsable(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("CatLayout")]
[SRDescriptionAttribute("ControlOnResizeDescr")]
public event EventHandler Resize;
//
// 摘要:
// 在 System.Windows.Forms.Control.RightToLeft 属性值更改时发生。
[SRCategoryAttribute("CatPropertyChanged")]
[SRDescriptionAttribute("ControlOnRightToLeftChangedDescr")]
public event EventHandler RightToLeftChanged;
//
// 摘要:
// 在 System.Windows.Forms.Control.Size 属性值更改时发生。
[SRCategoryAttribute("CatPropertyChanged")]
[SRDescriptionAttribute("ControlOnSizeChangedDescr")]
public event EventHandler SizeChanged;
//
// 摘要:
// 在控件样式更改时发生。
[SRCategoryAttribute("CatBehavior")]
[SRDescriptionAttribute("ControlOnStyleChangedDescr")]
public event EventHandler StyleChanged;
//
// 摘要:
// 系统颜色更改时发生。
[SRCategoryAttribute("CatBehavior")]
[SRDescriptionAttribute("ControlOnSystemColorsChangedDescr")]
public event EventHandler SystemColorsChanged;
//
// 摘要:
// 在 System.Windows.Forms.Control.TabIndex 属性值更改时发生。
[SRCategoryAttribute("CatPropertyChanged")]
[SRDescriptionAttribute("ControlOnTabIndexChangedDescr")]
public event EventHandler TabIndexChanged;
//
// 摘要:
// 在 System.Windows.Forms.Control.TabStop 属性值更改时发生。
[SRCategoryAttribute("CatPropertyChanged")]
[SRDescriptionAttribute("ControlOnTabStopChangedDescr")]
public event EventHandler TabStopChanged;
//
// 摘要:
// 在 System.Windows.Forms.Control.Text 属性值更改时发生。
[SRCategoryAttribute("CatPropertyChanged")]
[SRDescriptionAttribute("ControlOnTextChangedDescr")]
public event EventHandler TextChanged;
//
// 摘要:
// 在控件完成验证时发生。
[SRCategoryAttribute("CatFocus")]
[SRDescriptionAttribute("ControlOnValidatedDescr")]
public event EventHandler Validated;
//
// 摘要:
// 在控件正在验证时发生。
[SRCategoryAttribute("CatFocus")]
[SRDescriptionAttribute("ControlOnValidatingDescr")]
public event CancelEventHandler Validating;
//
// 摘要:
// 在 System.Windows.Forms.Control.Visible 属性值更改时发生。
[SRCategoryAttribute("CatPropertyChanged")]
[SRDescriptionAttribute("ControlOnVisibleChangedDescr")]
public event EventHandler VisibleChanged; //
// 摘要:
// 检索包含指定句柄的控件。
//
// 参数:
// handle:
// 要搜索的窗口句柄 (HWND)。
//
// 返回结果:
// System.Windows.Forms.Control,它表示与指定句柄关联的控件;如果找不到带有指定句柄的控件,就返回 null。
[EditorBrowsable(EditorBrowsableState.Advanced)]
public static Control FromChildHandle(IntPtr handle);
//
// 摘要:
// 返回当前与指定句柄关联的控件。
//
// 参数:
// handle:
// 要搜索的窗口句柄 (HWND)。
//
// 返回结果:
// 一个 System.Windows.Forms.Control,它表示与指定句柄关联的控件;如果找不到带有指定句柄的控件,就返回 null。
[EditorBrowsable(EditorBrowsableState.Advanced)]
public static Control FromHandle(IntPtr handle);
//
// 摘要:
// 确定 Caps Lock、Num Lock 或 Scroll Lock 键是否有效。
//
// 参数:
// keyVal:
// System.Windows.Forms.Keys 枚举的 Caps Lock、Num Lock 或 Scroll Lock 成员。
//
// 返回结果:
// 如果指定的一个或多个键有效,则为 true;否则为 false。
//
// 异常:
// T:System.NotSupportedException:
// keyVal 参数引用 Caps Lock、Num Lock 或 Scroll Lock 键以外的键。
public static bool IsKeyLocked(Keys keyVal);
//
// 摘要:
// 搜索指定的字符串,以确定指定字符是否是分配给此控件的助记键字符。
//
// 参数:
// charCode:
// 要测试的字符。
//
// text:
// 要搜索的字符串。
//
// 返回结果:
// 如果 charCode 字符是分配给控件的助记键字符,则为 true;否则为 false。
public static bool IsMnemonic(char charCode, string text);
//
// 摘要:
// 向绑定到指定句柄的控件反映指定消息。
//
// 参数:
// hWnd:
// System.IntPtr 表示要反射消息的控件句柄。
//
// m:
// System.Windows.Forms.Message 表示要反射的 Windows 消息。
//
// 返回结果:
// 如果已反映消息,则为 true;否则为 false。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected static bool ReflectMessage(IntPtr hWnd, ref Message m);
//
// 摘要:
// 在创建控件的基础句柄所在线程上异步执行指定委托。
//
// 参数:
// method:
// 对不带参数的方法的委托。
//
// 返回结果:
// 一个表示 System.Windows.Forms.Control.BeginInvoke(System.Delegate) 操作的结果的 System.IAsyncResult。
[EditorBrowsable(EditorBrowsableState.Advanced)]
public IAsyncResult BeginInvoke(Delegate method);
//
// 摘要:
// 在创建控件的基础句柄所在线程上,用指定的参数异步执行指定委托。
//
// 参数:
// method:
// 一个方法委托,它采用的参数的数量和类型与 args 参数中所包含的相同。
//
// args:
// 作为给定方法的参数传递的对象数组。如果不需要参数,则可以为 null。
//
// 返回结果:
// 一个表示 System.Windows.Forms.Control.BeginInvoke(System.Delegate) 操作的结果的 System.IAsyncResult。
[EditorBrowsable(EditorBrowsableState.Advanced)]
public IAsyncResult BeginInvoke(Delegate method, params object[] args);
//
// 摘要:
// 将控件带到 Z 顺序的前面。
public void BringToFront();
//
// 摘要:
// 检索一个值,该值指示指定控件是否为一个控件的子控件。
//
// 参数:
// ctl:
// 要计算的 System.Windows.Forms.Control。
//
// 返回结果:
// 如果指定控件是控件的子控件,则为 true;否则为 false。
public bool Contains(Control ctl);
//
// 摘要:
// 强制创建控件,包括创建句柄和任何子控件。
public void CreateControl();
//
// 摘要:
// 为控件创建 System.Drawing.Graphics。
//
// 返回结果:
// 控件的 System.Drawing.Graphics。
public Graphics CreateGraphics();
//
// 摘要:
// 开始拖放操作。
//
// 参数:
// data:
// 要拖动的数据。
//
// allowedEffects:
// System.Windows.Forms.DragDropEffects 值之一。
//
// 返回结果:
// System.Windows.Forms.DragDropEffects 枚举的值,它表示在拖放操作期间执行的最终效果。
public DragDropEffects DoDragDrop(object data, DragDropEffects allowedEffects);
//
// 摘要:
// 支持呈现到指定的位图。
//
// 参数:
// bitmap:
// 要绘制到的位图。
//
// targetBounds:
// 呈现控件时的边界。
public void DrawToBitmap(Bitmap bitmap, Rectangle targetBounds);
//
// 摘要:
// 检索由传递的 System.IAsyncResult 表示的异步操作的返回值。
//
// 参数:
// asyncResult:
// System.IAsyncResult,表示特定的调用异步操作,在调用 System.Windows.Forms.Control.BeginInvoke(System.Delegate)
// 时返回。
//
// 返回结果:
// 由异步操作生成的 System.Object。
//
// 异常:
// T:System.ArgumentNullException:
// asyncResult 参数值为 null。
//
// T:System.ArgumentException:
// asyncResult 对象不是由同一控件中的 System.Windows.Forms.Control.BeginInvoke(System.Delegate)
// 方法的前一个调用创建的。
[EditorBrowsable(EditorBrowsableState.Advanced)]
public object EndInvoke(IAsyncResult asyncResult);
//
// 摘要:
// 检索控件所在的窗体。
//
// 返回结果:
// 控件所在的 System.Windows.Forms.Form。
public Form FindForm();
//
// 摘要:
// 为控件设置输入焦点。
//
// 返回结果:
// 如果输入焦点请求成功,则为 true;否则为 false。
[EditorBrowsable(EditorBrowsableState.Advanced)]
public bool Focus();
//
// 摘要:
// 检索位于指定坐标处的子控件。
//
// 参数:
// pt:
// 一个 System.Drawing.Point,它包含的坐标指定您要在何处查找控件。坐标相对于控件的工作区的左上角来表示。
//
// 返回结果:
// 一个 System.Windows.Forms.Control,它表示位于指定点处的控件。
public Control GetChildAtPoint(Point pt);
//
// 摘要:
// 检索位于指定坐标的子控件,并且指定是否忽略特定类型的子控件。
//
// 参数:
// pt:
// 一个 System.Drawing.Point,它包含的坐标指定您要在何处查找控件。坐标相对于控件的工作区的左上角来表示。
//
// skipValue:
// System.Windows.Forms.GetChildAtPointSkip 值之一,确定是否忽略特定类型的子控件。
//
// 返回结果:
// 指定坐标处的子 System.Windows.Forms.Control。
public Control GetChildAtPoint(Point pt, GetChildAtPointSkip skipValue);
//
// 摘要:
// 沿着控件的父控件链向上,返回下一个 System.Windows.Forms.ContainerControl。
//
// 返回结果:
// 一个 System.Windows.Forms.IContainerControl,表示 System.Windows.Forms.Control 的父级。
public IContainerControl GetContainerControl();
//
// 摘要:
// 按照子控件的 Tab 键顺序向前或向后检索下一个控件。
//
// 参数:
// ctl:
// 从其上开始搜索的 System.Windows.Forms.Control。
//
// forward:
// 如果是 true,则按 Tab 键顺序向前搜索;如果是 false 则向后搜索。
//
// 返回结果:
// Tab 键顺序指定的下一个 System.Windows.Forms.Control。
public Control GetNextControl(Control ctl, bool forward);
//
// 摘要:
// 检索可以容纳控件的矩形区域的大小。
//
// 参数:
// proposedSize:
// 控件的自定义大小的区域。
//
// 返回结果:
// 类型为 System.Drawing.Size 的有序对,表示矩形的宽度和高度。
[EditorBrowsable(EditorBrowsableState.Advanced)]
public virtual Size GetPreferredSize(Size proposedSize);
//
// 摘要:
// 对用户隐藏控件。
public void Hide();
//
// 摘要:
// 使控件的整个图面无效并导致重绘控件。
public void Invalidate();
//
// 摘要:
// 使控件的指定区域无效(将其添加到控件的更新区域,下次绘制操作时将重新绘制更新区域),并向控件发送绘制消息。
//
// 参数:
// rc:
// 一个 System.Drawing.Rectangle,表示要使之无效的区域。
public void Invalidate(Rectangle rc);
//
// 摘要:
// 使控件的特定区域无效并向控件发送绘制消息。还可以使分配给该控件的子控件无效。
//
// 参数:
// invalidateChildren:
// 若要使控件的子控件无效,则为 true;否则为 false。
public void Invalidate(bool invalidateChildren);
//
// 摘要:
// 使控件的指定区域无效(将其添加到控件的更新区域,下次绘制操作时将重新绘制更新区域),并向控件发送绘制消息。
//
// 参数:
// region:
// 要使之无效的 System.Drawing.Region。
public void Invalidate(Region region);
//
// 摘要:
// 使控件的指定区域无效(将其添加到控件的更新区域,下次绘制操作时将重新绘制更新区域),并向控件发送绘制消息。还可以使分配给该控件的子控件无效。
//
// 参数:
// rc:
// 一个 System.Drawing.Rectangle,表示要使之无效的区域。
//
// invalidateChildren:
// 若要使控件的子控件无效,则为 true;否则为 false。
public void Invalidate(Rectangle rc, bool invalidateChildren);
//
// 摘要:
// 使控件的指定区域无效(将其添加到控件的更新区域,下次绘制操作时将重新绘制更新区域),并向控件发送绘制消息。还可以使分配给该控件的子控件无效。
//
// 参数:
// region:
// 要使之无效的 System.Drawing.Region。
//
// invalidateChildren:
// 若要使控件的子控件无效,则为 true;否则为 false。
public void Invalidate(Region region, bool invalidateChildren);
//
// 摘要:
// 在拥有此控件的基础窗口句柄的线程上执行指定的委托。
//
// 参数:
// method:
// 包含要在控件的线程上下文中调用的方法的委托。
//
// 返回结果:
// 正在被调用的委托的返回值,或者如果委托没有返回值,则为 null。
public object Invoke(Delegate method);
//
// 摘要:
// 在拥有控件的基础窗口句柄的线程上,用指定的参数列表执行指定委托。
//
// 参数:
// method:
// 一个方法委托,它采用的参数的数量和类型与 args 参数中所包含的相同。
//
// args:
// 作为指定方法的参数传递的对象数组。如果此方法没有参数,该参数可以是 null。
//
// 返回结果:
// System.Object,它包含正被调用的委托返回值;如果该委托没有返回值,则为 null。
public object Invoke(Delegate method, params object[] args);
//
// 摘要:
// 强制控件将布局逻辑应用于其所有子控件。
[EditorBrowsable(EditorBrowsableState.Advanced)]
public void PerformLayout();
//
// 摘要:
// 强制控件将布局逻辑应用于其所有子控件。
//
// 参数:
// affectedControl:
// 一个 System.Windows.Forms.Control,它表示最近更改的控件。
//
// affectedProperty:
// 此控件上最近更改的属性的名称。
[EditorBrowsable(EditorBrowsableState.Advanced)]
public void PerformLayout(Control affectedControl, string affectedProperty);
//
// 摘要:
// 将指定屏幕点的位置计算成工作区坐标。
//
// 参数:
// p:
// 要转换的屏幕坐标 System.Drawing.Point。
//
// 返回结果:
// 一个 System.Drawing.Point,它表示转换后的 System.Drawing.Point、p(以工作区坐标表示)。
public Point PointToClient(Point p);
//
// 摘要:
// 将指定工作区点的位置计算成屏幕坐标。
//
// 参数:
// p:
// 要转换的工作区坐标 System.Drawing.Point。
//
// 返回结果:
// 一个 System.Drawing.Point,它表示转换后的 System.Drawing.Point、p(以屏幕坐标表示)。
public Point PointToScreen(Point p);
//
// 摘要:
// 在调度键盘或输入消息之前,在消息循环内对它们进行预处理。
//
// 参数:
// msg:
// 一个 System.Windows.Forms.Message,表示要处理的消息。
//
// 返回结果:
// System.Windows.Forms.PreProcessControlState 值之一,具体取决于 System.Windows.Forms.Control.PreProcessMessage(System.Windows.Forms.Message@)
// 是 true 还是 false,以及 System.Windows.Forms.Control.IsInputKey(System.Windows.Forms.Keys)
// 或 System.Windows.Forms.Control.IsInputChar(System.Char) 是 true 还是 false。
[EditorBrowsable(EditorBrowsableState.Advanced)]
public PreProcessControlState PreProcessControlMessage(ref Message msg);
//
// 摘要:
// 在调度键盘或输入消息之前,在消息循环内对它们进行预处理。
//
// 参数:
// msg:
// 通过引用传递的 System.Windows.Forms.Message,它表示要处理的消息。可能的值有 WM_KEYDOWN、WM_SYSKEYDOWN、WM_CHAR
// 和 WM_SYSCHAR。
//
// 返回结果:
// 如果消息已由控件处理,则为 true;否则为 false。
public virtual bool PreProcessMessage(ref Message msg);
//
// 摘要:
// 计算指定屏幕矩形的大小和位置(以工作区坐标表示)。
//
// 参数:
// r:
// 要转换的屏幕坐标 System.Drawing.Rectangle。
//
// 返回结果:
// 一个 System.Drawing.Rectangle,它表示转换后的 System.Drawing.Rectangle、r(以工作区坐标表示)。
public Rectangle RectangleToClient(Rectangle r);
//
// 摘要:
// 计算指定工作区矩形的大小和位置(以屏幕坐标表示)。
//
// 参数:
// r:
// 要转换的屏幕坐标 System.Drawing.Rectangle。
//
// 返回结果:
// 一个 System.Drawing.Rectangle,它表示转换后的 System.Drawing.Rectangle、p(以屏幕坐标表示)。
public Rectangle RectangleToScreen(Rectangle r);
//
// 摘要:
// 强制控件使其工作区无效并立即重绘自己和任何子控件。
public virtual void Refresh();
//
// 摘要:
// 将 System.Windows.Forms.Control.BackColor 属性重置为其默认值。
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual void ResetBackColor();
//
// 摘要:
// 使绑定到 System.Windows.Forms.BindingSource 的控件重新读取列表中的所有项,并刷新这些项的显示值。
[EditorBrowsable(EditorBrowsableState.Never)]
public void ResetBindings();
//
// 摘要:
// 将 System.Windows.Forms.Control.Cursor 属性重置为其默认值。
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual void ResetCursor();
//
// 摘要:
// 将 System.Windows.Forms.Control.Font 属性重置为其默认值。
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual void ResetFont();
//
// 摘要:
// 将 System.Windows.Forms.Control.ForeColor 属性重置为其默认值。
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual void ResetForeColor();
//
// 摘要:
// 将 System.Windows.Forms.Control.ImeMode 属性重置为其默认值。
[EditorBrowsable(EditorBrowsableState.Never)]
public void ResetImeMode();
//
// 摘要:
// 将 System.Windows.Forms.Control.RightToLeft 属性重置为其默认值。
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual void ResetRightToLeft();
//
// 摘要:
// 将 System.Windows.Forms.Control.Text 属性重置为其默认值。
public virtual void ResetText();
//
// 摘要:
// 恢复正常的布局逻辑。
public void ResumeLayout();
//
// 摘要:
// 恢复正常的布局逻辑,可以选择强制对挂起的布局请求立即进行布局。
//
// 参数:
// performLayout:
// 若要执行挂起的布局请求,则为 true;否则为 false。
public void ResumeLayout(bool performLayout);
//
// 摘要:
// 按指定的比例因子缩放控件和所有子控件。
//
// 参数:
// factor:
// 一个包含水平和垂直比例因子的 System.Drawing.SizeF。
[EditorBrowsable(EditorBrowsableState.Advanced)]
public void Scale(SizeF factor);
//
// 摘要:
// 缩放控件和任何子控件。
//
// 参数:
// ratio:
// 要用于缩放的比例。
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This method has been deprecated. Use the Scale(SizeF ratio) method instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public void Scale(float ratio);
//
// 摘要:
// 缩放整个控件和任何子控件。
//
// 参数:
// dx:
// 水平比例因子。
//
// dy:
// 垂直比例因子。
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This method has been deprecated. Use the Scale(SizeF ratio) method instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public void Scale(float dx, float dy);
//
// 摘要:
// 激活控件。
public void Select();
//
// 摘要:
// 激活下一个控件。
//
// 参数:
// ctl:
// 从其上开始搜索的 System.Windows.Forms.Control。
//
// forward:
// 如果为 true 则在 Tab 键顺序中前移;如果为 false 则在 Tab 键顺序中后移。
//
// tabStopOnly:
// true 表示忽略 System.Windows.Forms.Control.TabStop 属性设置为 false 的控件;false 表示不忽略。
//
// nested:
// true 表示包括嵌套子控件(子控件的子级);false 表示不包括。
//
// wrap:
// true 表示在到达最后一个控件之后从 Tab 键顺序中第一个控件开始继续搜索;false 表示不继续搜索。
//
// 返回结果:
// 如果控件已激活,则为 true;否则为 false。
public bool SelectNextControl(Control ctl, bool forward, bool tabStopOnly, bool nested, bool wrap);
//
// 摘要:
// 将控件发送到 Z 顺序的后面。
public void SendToBack();
//
// 摘要:
// 将控件的边界设置为指定位置和大小。
//
// 参数:
// x:
// 控件的新 System.Windows.Forms.Control.Left 属性值。
//
// y:
// 控件的新 System.Windows.Forms.Control.Top 属性值。
//
// width:
// 控件的新 System.Windows.Forms.Control.Width 属性值。
//
// height:
// 控件的新 System.Windows.Forms.Control.Height 属性值。
public void SetBounds(int x, int y, int width, int height);
//
// 摘要:
// 将控件的指定边界设置为指定位置和大小。
//
// 参数:
// x:
// 控件的新 System.Windows.Forms.Control.Left 属性值。
//
// y:
// 控件的新 System.Windows.Forms.Control.Top 属性值。
//
// width:
// 控件的新 System.Windows.Forms.Control.Width 属性值。
//
// height:
// 控件的新 System.Windows.Forms.Control.Height 属性值。
//
// specified:
// System.Windows.Forms.BoundsSpecified 值的按位组合。对于任何未指定的参数,将使用当前值。
public void SetBounds(int x, int y, int width, int height, BoundsSpecified specified);
//
// 摘要:
// 向用户显示控件。
public void Show();
//
// 摘要:
// 临时挂起控件的布局逻辑。
public void SuspendLayout();
//
// 摘要:
// 使控件重绘其工作区内的无效区域。
public void Update();
//
// 摘要:
// 就指定的子控件的指定 System.Windows.Forms.AccessibleEvents 通知辅助功能客户端应用程序。
//
// 参数:
// accEvent:
// 要将其通报给具有辅助功能的客户端应用程序的 System.Windows.Forms.AccessibleEvents。
//
// objectID:
// System.Windows.Forms.AccessibleObject 的标识符。
//
// childID:
// 就该辅助性事件要通知的子 System.Windows.Forms.Control。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected void AccessibilityNotifyClients(AccessibleEvents accEvent, int objectID, int childID);
//
// 摘要:
// 为该控件创建一个新的辅助功能对象。
//
// 返回结果:
// 控件的新 System.Windows.Forms.AccessibleObject。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual AccessibleObject CreateAccessibilityInstance();
//
// 摘要:
// 为控件创建控件集合的新实例。
//
// 返回结果:
// 分配给控件的 System.Windows.Forms.Control.ControlCollection 的新实例。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual ControlCollection CreateControlsInstance();
//
// 摘要:
// 为该控件创建句柄。
//
// 异常:
// T:System.ObjectDisposedException:
// 对象处于被释放状态。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void CreateHandle();
//
// 摘要:
// 向默认窗口过程发送指定消息。
//
// 参数:
// m:
// 要处理的 WindowsSystem.Windows.Forms.Message。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void DefWndProc(ref Message m);
//
// 摘要:
// 毁坏与该控件关联的句柄。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void DestroyHandle();
//
// 摘要:
// 释放由 System.Windows.Forms.Control 和它的子控件占用的非托管资源,另外还可以释放托管资源。
//
// 参数:
// disposing:
// 为 true 则释放托管资源和非托管资源;为 false 则仅释放非托管资源。
protected override void Dispose(bool disposing);
//
// 摘要:
// 检索指定的 System.Windows.Forms.AccessibleObject。
//
// 参数:
// objectId:
// 一个 Int32,标识要检索的 System.Windows.Forms.AccessibleObject。
//
// 返回结果:
// 一个 System.Windows.Forms.AccessibleObject。
protected virtual AccessibleObject GetAccessibilityObjectById(int objectId);
//
// 摘要:
// 检索一个值,该值指示当启用控件的 System.Windows.Forms.Control.AutoSize 属性时控件的行为方式。
//
// 返回结果:
// System.Windows.Forms.AutoSizeMode 值之一。
protected AutoSizeMode GetAutoSizeMode();
//
// 摘要:
// 检索缩放控件时的边界。
//
// 参数:
// bounds:
// 指定要在显示器边界中检索的区域的 System.Drawing.Rectangle。
//
// factor:
// 控件边界的高度和宽度。
//
// specified:
// System.Windows.Forms.BoundsSpecified 的一个值,它指定在定义控件的大小和位置时要使用的控件界限。
//
// 返回结果:
// 一个表示缩放控件时的边界的 System.Drawing.Rectangle。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual Rectangle GetScaledBounds(Rectangle bounds, SizeF factor, BoundsSpecified specified);
//
// 摘要:
// 为控件检索指定控件样式位的值。
//
// 参数:
// flag:
// 从中返回值的 System.Windows.Forms.ControlStyles 位。
//
// 返回结果:
// 如果指定控件样式位设置为 true,则为 true;否则为 false。
protected bool GetStyle(ControlStyles flag);
//
// 摘要:
// 确定控件是否是*控件。
//
// 返回结果:
// 如果该控件为*控件,则为 true;否则为 false。
protected bool GetTopLevel();
//
// 摘要:
// 在将控件添加到另一个容器之后调用。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void InitLayout();
//
// 摘要:
// 为指定的控件引发 System.Windows.Forms.Control.GotFocus 事件。
//
// 参数:
// toInvoke:
// 要将事件分配到的 System.Windows.Forms.Control。
//
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected void InvokeGotFocus(Control toInvoke, EventArgs e);
//
// 摘要:
// 为指定的控件引发 System.Windows.Forms.Control.LostFocus 事件。
//
// 参数:
// toInvoke:
// 要将事件分配到的 System.Windows.Forms.Control。
//
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected void InvokeLostFocus(Control toInvoke, EventArgs e);
//
// 摘要:
// 为指定的控件引发 System.Windows.Forms.Control.Click 事件。
//
// 参数:
// toInvoke:
// 要为之分配 System.Windows.Forms.Control.Click 事件的 System.Windows.Forms.Control。
//
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected void InvokeOnClick(Control toInvoke, EventArgs e);
//
// 摘要:
// 为指定的控件引发 System.Windows.Forms.Control.Paint 事件。
//
// 参数:
// c:
// 要为之分配 System.Windows.Forms.Control.Paint 事件的 System.Windows.Forms.Control。
//
// e:
// 包含事件数据的 System.Windows.Forms.PaintEventArgs。
protected void InvokePaint(Control c, PaintEventArgs e);
//
// 摘要:
// 为指定的控件引发 PaintBackground 事件。
//
// 参数:
// c:
// 要为之分配 System.Windows.Forms.Control.Paint 事件的 System.Windows.Forms.Control。
//
// e:
// 包含事件数据的 System.Windows.Forms.PaintEventArgs。
protected void InvokePaintBackground(Control c, PaintEventArgs e);
//
// 摘要:
// 确定一个字符是否是控件可识别的输入字符。
//
// 参数:
// charCode:
// 要测试的字符。
//
// 返回结果:
// 如果字符应直接发送到控件且不必经过预处理,则为 true;否则为 false。
protected virtual bool IsInputChar(char charCode);
//
// 摘要:
// 确定指定的键是常规输入键还是需要预处理的特殊键。
//
// 参数:
// keyData:
// System.Windows.Forms.Keys 值之一。
//
// 返回结果:
// 如果指定的键是常规输入键,则为 true;否则为 false。
protected virtual bool IsInputKey(Keys keyData);
//
// 摘要:
// 引发 System.Windows.Forms.Control.Invalidated 事件,其中带有要使之无效的控件的指定区域。
//
// 参数:
// invalidatedArea:
// 一个表示要使之无效的区域的 System.Drawing.Rectangle。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void NotifyInvalidate(Rectangle invalidatedArea);
//
// 摘要:
// 引发 System.Windows.Forms.Control.AutoSizeChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
protected virtual void OnAutoSizeChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.BackColorChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnBackColorChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.BackgroundImageChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnBackgroundImageChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.BackgroundImageLayoutChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnBackgroundImageLayoutChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.BindingContextChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnBindingContextChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.CausesValidationChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnCausesValidationChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.ChangeUICues 事件。
//
// 参数:
// e:
// 包含事件数据的 System.Windows.Forms.UICuesEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnChangeUICues(UICuesEventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.Click 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnClick(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.ClientSizeChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnClientSizeChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.ContextMenuChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnContextMenuChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.ContextMenuStripChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnContextMenuStripChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.ControlAdded 事件。
//
// 参数:
// e:
// 包含事件数据的 System.Windows.Forms.ControlEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnControlAdded(ControlEventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.ControlRemoved 事件。
//
// 参数:
// e:
// 包含事件数据的 System.Windows.Forms.ControlEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnControlRemoved(ControlEventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.CreateControl 方法。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnCreateControl();
//
// 摘要:
// 引发 System.Windows.Forms.Control.CursorChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnCursorChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.DockChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnDockChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.DoubleClick 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnDoubleClick(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.DragDrop 事件。
//
// 参数:
// drgevent:
// 包含事件数据的 System.Windows.Forms.DragEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnDragDrop(DragEventArgs drgevent);
//
// 摘要:
// 引发 System.Windows.Forms.Control.DragEnter 事件。
//
// 参数:
// drgevent:
// 包含事件数据的 System.Windows.Forms.DragEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnDragEnter(DragEventArgs drgevent);
//
// 摘要:
// 引发 System.Windows.Forms.Control.DragLeave 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnDragLeave(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.DragOver 事件。
//
// 参数:
// drgevent:
// 包含事件数据的 System.Windows.Forms.DragEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnDragOver(DragEventArgs drgevent);
//
// 摘要:
// 引发 System.Windows.Forms.Control.EnabledChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnEnabledChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.Enter 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnEnter(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.FontChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnFontChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.ForeColorChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnForeColorChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.GiveFeedback 事件。
//
// 参数:
// gfbevent:
// 包含事件数据的 System.Windows.Forms.GiveFeedbackEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnGiveFeedback(GiveFeedbackEventArgs gfbevent);
//
// 摘要:
// 引发 System.Windows.Forms.Control.GotFocus 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnGotFocus(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.HandleCreated 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnHandleCreated(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.HandleDestroyed 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnHandleDestroyed(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.HelpRequested 事件。
//
// 参数:
// hevent:
// 包含事件数据的 System.Windows.Forms.HelpEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnHelpRequested(HelpEventArgs hevent);
//
// 摘要:
// 引发 System.Windows.Forms.Control.ImeModeChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
protected virtual void OnImeModeChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.Invalidated 事件。
//
// 参数:
// e:
// 包含事件数据的 System.Windows.Forms.InvalidateEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnInvalidated(InvalidateEventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.KeyDown 事件。
//
// 参数:
// e:
// 包含事件数据的 System.Windows.Forms.KeyEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnKeyDown(KeyEventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.KeyPress 事件。
//
// 参数:
// e:
// 包含事件数据的 System.Windows.Forms.KeyPressEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnKeyPress(KeyPressEventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.KeyUp 事件。
//
// 参数:
// e:
// 包含事件数据的 System.Windows.Forms.KeyEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnKeyUp(KeyEventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.Layout 事件。
//
// 参数:
// levent:
// 包含事件数据的 System.Windows.Forms.LayoutEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnLayout(LayoutEventArgs levent);
//
// 摘要:
// 引发 System.Windows.Forms.Control.Leave 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnLeave(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.LocationChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnLocationChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.LostFocus 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnLostFocus(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.MarginChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
protected virtual void OnMarginChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.MouseCaptureChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnMouseCaptureChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.MouseClick 事件。
//
// 参数:
// e:
// 包含事件数据的 System.Windows.Forms.MouseEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnMouseClick(MouseEventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.MouseDoubleClick 事件。
//
// 参数:
// e:
// 包含事件数据的 System.Windows.Forms.MouseEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnMouseDoubleClick(MouseEventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.MouseDown 事件。
//
// 参数:
// e:
// 包含事件数据的 System.Windows.Forms.MouseEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnMouseDown(MouseEventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.MouseEnter 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnMouseEnter(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.MouseHover 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnMouseHover(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.MouseLeave 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnMouseLeave(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.MouseMove 事件。
//
// 参数:
// e:
// 包含事件数据的 System.Windows.Forms.MouseEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnMouseMove(MouseEventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.MouseUp 事件。
//
// 参数:
// e:
// 包含事件数据的 System.Windows.Forms.MouseEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnMouseUp(MouseEventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.MouseWheel 事件。
//
// 参数:
// e:
// 包含事件数据的 System.Windows.Forms.MouseEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnMouseWheel(MouseEventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.Move 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnMove(EventArgs e);
//
// 摘要:
// 向控件通知 Windows 消息。
//
// 参数:
// m:
// 一个 System.Windows.Forms.Message,它表示 Windows 消息。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnNotifyMessage(Message m);
//
// 摘要:
// 引发 System.Windows.Forms.Control.PaddingChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
protected virtual void OnPaddingChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.Paint 事件。
//
// 参数:
// e:
// 包含事件数据的 System.Windows.Forms.PaintEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnPaint(PaintEventArgs e);
//
// 摘要:
// 绘制控件的背景。
//
// 参数:
// pevent:
// 包含有关要绘制的控件的信息的 System.Windows.Forms.PaintEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnPaintBackground(PaintEventArgs pevent);
//
// 摘要:
// 当控件容器的 System.Windows.Forms.Control.BackColor 属性值更改时,将引发 System.Windows.Forms.Control.BackColorChanged
// 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnParentBackColorChanged(EventArgs e);
//
// 摘要:
// 当控件容器的 System.Windows.Forms.Control.BackgroundImage 属性值更改时,将引发 System.Windows.Forms.Control.BackgroundImageChanged
// 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnParentBackgroundImageChanged(EventArgs e);
//
// 摘要:
// 当控件容器的 System.Windows.Forms.Control.BindingContext 属性值更改时,将引发 System.Windows.Forms.Control.BindingContextChanged
// 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnParentBindingContextChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.ParentChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnParentChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.CursorChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnParentCursorChanged(EventArgs e);
//
// 摘要:
// 当控件容器的 System.Windows.Forms.Control.Enabled 属性值更改时,将引发 System.Windows.Forms.Control.EnabledChanged
// 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnParentEnabledChanged(EventArgs e);
//
// 摘要:
// 当控件容器的 System.Windows.Forms.Control.Font 属性值更改时,将引发 System.Windows.Forms.Control.FontChanged
// 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnParentFontChanged(EventArgs e);
//
// 摘要:
// 当控件容器的 System.Windows.Forms.Control.ForeColor 属性值更改时,将引发 System.Windows.Forms.Control.ForeColorChanged
// 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnParentForeColorChanged(EventArgs e);
//
// 摘要:
// 当控件容器的 System.Windows.Forms.Control.RightToLeft 属性值更改时,将引发 System.Windows.Forms.Control.RightToLeftChanged
// 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnParentRightToLeftChanged(EventArgs e);
//
// 摘要:
// 当控件容器的 System.Windows.Forms.Control.Visible 属性值更改时,将引发 System.Windows.Forms.Control.VisibleChanged
// 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnParentVisibleChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.PreviewKeyDown 事件。
//
// 参数:
// e:
// 包含事件数据的 System.Windows.Forms.PreviewKeyDownEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnPreviewKeyDown(PreviewKeyDownEventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.Paint 事件。
//
// 参数:
// e:
// 包含事件数据的 System.Windows.Forms.PaintEventArgs。
//
// 异常:
// T:System.ArgumentNullException:
// e 参数为 null。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnPrint(PaintEventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.QueryContinueDrag 事件。
//
// 参数:
// qcdevent:
// 包含事件数据的 System.Windows.Forms.QueryContinueDragEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnQueryContinueDrag(QueryContinueDragEventArgs qcdevent);
//
// 摘要:
// 引发 System.Windows.Forms.Control.RegionChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnRegionChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.Resize 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnResize(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.RightToLeftChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnRightToLeftChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.SizeChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnSizeChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.StyleChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnStyleChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.SystemColorsChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnSystemColorsChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.TabIndexChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnTabIndexChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.TabStopChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnTabStopChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.TextChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnTextChanged(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.Validated 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnValidated(EventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.Validating 事件。
//
// 参数:
// e:
// 包含事件数据的 System.ComponentModel.CancelEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnValidating(CancelEventArgs e);
//
// 摘要:
// 引发 System.Windows.Forms.Control.VisibleChanged 事件。
//
// 参数:
// e:
// 包含事件数据的 System.EventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void OnVisibleChanged(EventArgs e);
//
// 摘要:
// 处理命令键。
//
// 参数:
// msg:
// 通过引用传递的 System.Windows.Forms.Message,它表示要处理的窗口消息。
//
// keyData:
// System.Windows.Forms.Keys 值之一,它表示要处理的键。
//
// 返回结果:
// 如果字符已由控件处理,则为 true;否则为 false。
protected virtual bool ProcessCmdKey(ref Message msg, Keys keyData);
//
// 摘要:
// 处理对话框字符。
//
// 参数:
// charCode:
// 要处理的字符。
//
// 返回结果:
// 如果字符已由控件处理,则为 true;否则为 false。
protected virtual bool ProcessDialogChar(char charCode);
//
// 摘要:
// 处理对话框键。
//
// 参数:
// keyData:
// System.Windows.Forms.Keys 值之一,它表示要处理的键。
//
// 返回结果:
// 如果键已由控件处理,则为 true;否则为 false。
protected virtual bool ProcessDialogKey(Keys keyData);
//
// 摘要:
// 处理键消息并生成适当的控件事件。
//
// 参数:
// m:
// 通过引用传递的 System.Windows.Forms.Message,它表示要处理的窗口消息。
//
// 返回结果:
// 如果消息已由控件处理,则为 true;否则为 false。
protected virtual bool ProcessKeyEventArgs(ref Message m);
//
// 摘要:
// 预览键盘消息。
//
// 参数:
// m:
// 通过引用传递的 System.Windows.Forms.Message,它表示要处理的窗口消息。
//
// 返回结果:
// 如果消息已由控件处理,则为 true;否则为 false。
protected virtual bool ProcessKeyPreview(ref Message m);
//
// 摘要:
// 引发适当的拖动事件。
//
// 参数:
// key:
// 要引发的事件。
//
// e:
// 包含事件数据的 System.Windows.Forms.DragEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected void RaiseDragEvent(object key, DragEventArgs e);
//
// 摘要:
// 引发适当的键事件。
//
// 参数:
// key:
// 要引发的事件。
//
// e:
// 包含事件数据的 System.Windows.Forms.KeyEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected void RaiseKeyEvent(object key, KeyEventArgs e);
//
// 摘要:
// 引发适当的鼠标事件。
//
// 参数:
// key:
// 要引发的事件。
//
// e:
// 包含事件数据的 System.Windows.Forms.MouseEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected void RaiseMouseEvent(object key, MouseEventArgs e);
//
// 摘要:
// 引发适当的绘画事件。
//
// 参数:
// key:
// 要引发的事件。
//
// e:
// 包含事件数据的 System.Windows.Forms.PaintEventArgs。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected void RaisePaintEvent(object key, PaintEventArgs e);
//
// 摘要:
// 强制为控件重新创建句柄。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected void RecreateHandle();
//
// 摘要:
// 重置控件以处理 System.Windows.Forms.Control.MouseLeave 事件。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected void ResetMouseEventArgs();
//
// 摘要:
// 将指定的 System.Drawing.ContentAlignment 转换为相应的 System.Drawing.ContentAlignment 以支持从右向左的文本。
//
// 参数:
// align:
// System.Drawing.ContentAlignment 值之一。
//
// 返回结果:
// System.Drawing.ContentAlignment 值之一。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected ContentAlignment RtlTranslateAlignment(ContentAlignment align);
//
// 摘要:
// 将指定的 System.Windows.Forms.LeftRightAlignment 转换为相应的 System.Windows.Forms.LeftRightAlignment
// 以支持从右向左的文本。
//
// 参数:
// align:
// System.Windows.Forms.LeftRightAlignment 值之一。
//
// 返回结果:
// System.Windows.Forms.LeftRightAlignment 值之一。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected LeftRightAlignment RtlTranslateAlignment(LeftRightAlignment align);
//
// 摘要:
// 将指定的 System.Windows.Forms.HorizontalAlignment 转换为相应的 System.Windows.Forms.HorizontalAlignment
// 以支持从右向左的文本。
//
// 参数:
// align:
// System.Windows.Forms.HorizontalAlignment 值之一。
//
// 返回结果:
// System.Windows.Forms.HorizontalAlignment 值之一。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected HorizontalAlignment RtlTranslateAlignment(HorizontalAlignment align);
//
// 摘要:
// 将指定的 System.Windows.Forms.HorizontalAlignment 转换为相应的 System.Windows.Forms.HorizontalAlignment
// 以支持从右向左的文本。
//
// 参数:
// align:
// System.Windows.Forms.HorizontalAlignment 值之一。
//
// 返回结果:
// System.Windows.Forms.HorizontalAlignment 值之一。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected HorizontalAlignment RtlTranslateHorizontal(HorizontalAlignment align);
//
// 摘要:
// 将指定的 System.Windows.Forms.LeftRightAlignment 转换为相应的 System.Windows.Forms.LeftRightAlignment
// 以支持从右向左的文本。
//
// 参数:
// align:
// System.Windows.Forms.LeftRightAlignment 值之一。
//
// 返回结果:
// System.Windows.Forms.LeftRightAlignment 值之一。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected LeftRightAlignment RtlTranslateLeftRight(LeftRightAlignment align);
//
// 摘要:
// 缩放控件的位置、大小、空白和边距。
//
// 参数:
// factor:
// 控件高度和宽度的缩放因子。
//
// specified:
// 一个 System.Windows.Forms.BoundsSpecified 值,该值指定定义控件的大小和位置时要使用的控件边界。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void ScaleControl(SizeF factor, BoundsSpecified specified);
//
// 摘要:
// 此方法与此类无关。
//
// 参数:
// dx:
// 水平比例因子。
//
// dy:
// 垂直比例因子。
[EditorBrowsable(EditorBrowsableState.Never)]
protected virtual void ScaleCore(float dx, float dy);
//
// 摘要:
// 激活子控件。还可以指定从中选择控件的 Tab 键顺序的方向。
//
// 参数:
// directed:
// true 表示要指定选择控件的方向;false 表示不指定。
//
// forward:
// 如果为 true 则在 Tab 键顺序中前移;如果为 false 则在 Tab 键顺序中后移。
protected virtual void Select(bool directed, bool forward);
//
// 摘要:
// 设置一个值,该值指示当启用控件的 System.Windows.Forms.Control.AutoSize 属性时控件的行为方式。
//
// 参数:
// mode:
// System.Windows.Forms.AutoSizeMode 值之一。
protected void SetAutoSizeMode(AutoSizeMode mode);
//
// 摘要:
// 执行设置该控件的指定边界的工作。
//
// 参数:
// x:
// 控件的新 System.Windows.Forms.Control.Left 属性值。
//
// y:
// 控件的新 System.Windows.Forms.Control.Top 属性值。
//
// width:
// 控件的新 System.Windows.Forms.Control.Width 属性值。
//
// height:
// 控件的新 System.Windows.Forms.Control.Height 属性值。
//
// specified:
// System.Windows.Forms.BoundsSpecified 值的按位组合。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified);
//
// 摘要:
// 设置控件的工作区的大小。
//
// 参数:
// x:
// 工作区宽度(以像素为单位)。
//
// y:
// 工作区高度(以像素为单位)。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual void SetClientSizeCore(int x, int y);
//
// 摘要:
// 将指定的 System.Windows.Forms.ControlStyles 标志设置为 true 或 false。
//
// 参数:
// flag:
// 要设置的 System.Windows.Forms.ControlStyles 位。
//
// value:
// true 表示将指定的样式应用于控件;false 表示不应用。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected void SetStyle(ControlStyles flag, bool value);
//
// 摘要:
// 将控件设置为*控件。
//
// 参数:
// value:
// true 表示将控件设置为*控件;false 表示不作此设置。
//
// 异常:
// T:System.InvalidOperationException:
// value 参数被设置为 true 且控件是 ActiveX 控件。
//
// T:System.Exception:
// System.Windows.Forms.Control.GetTopLevel 返回值不等于 value 参数且 System.Windows.Forms.Control.Parent
// 属性不为 null。
protected void SetTopLevel(bool value);
//
// 摘要:
// 将控件设置为指定的可见状态。
//
// 参数:
// value:
// true 表示使控件可见;false 表示使控件不可见。
protected virtual void SetVisibleCore(bool value);
//
// 摘要:
// 确定整个控件(从控件工作区的高度和宽度起计算)的大小。
//
// 参数:
// clientSize:
// 一个 System.Drawing.Size 值,表示控件工作区的高度和宽度。
//
// 返回结果:
// 一个 System.Drawing.Size 值,表示整个控件的高度和宽度。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected virtual Size SizeFromClientSize(Size clientSize);
//
// 摘要:
// 用指定大小和位置更新控件的边界。
//
// 参数:
// x:
// 控件的 System.Drawing.Point.X 坐标。
//
// y:
// 控件的 System.Drawing.Point.Y 坐标。
//
// width:
// 控件的 System.Drawing.Size.Width。
//
// height:
// 控件的 System.Drawing.Size.Height。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected void UpdateBounds(int x, int y, int width, int height);
//
// 摘要:
// 用指定大小、位置和工作区的大小更新控件的边界。
//
// 参数:
// x:
// 控件的 System.Drawing.Point.X 坐标。
//
// y:
// 控件的 System.Drawing.Point.Y 坐标。
//
// width:
// 控件的 System.Drawing.Size.Width。
//
// height:
// 控件的 System.Drawing.Size.Height。
//
// clientWidth:
// 控件的工作区的 System.Drawing.Size.Width。
//
// clientHeight:
// 控件的工作区的 System.Drawing.Size.Height。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected void UpdateBounds(int x, int y, int width, int height, int clientWidth, int clientHeight);
//
// 摘要:
// 强制将分配的样式重新应用到控件。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected void UpdateStyles();
//
// 摘要:
// 按控件的父级的 Z 顺序更新控件。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected void UpdateZOrder();
//
// 摘要:
// 处理 Windows 消息。
//
// 参数:
// m:
// 要处理的 WindowsSystem.Windows.Forms.Message。
protected virtual void WndProc(ref Message m);
//
// 摘要:
// 就指定的子控件的指定 System.Windows.Forms.AccessibleEvents 通知辅助功能客户端应用程序。
//
// 参数:
// accEvent:
// 要将其通报给具有辅助功能的客户端应用程序的 System.Windows.Forms.AccessibleEvents。
//
// childID:
// 就该辅助性事件要通知的子 System.Windows.Forms.Control。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected internal void AccessibilityNotifyClients(AccessibleEvents accEvent, int childID);
//
// 摘要:
// 处理键盘消息。
//
// 参数:
// m:
// 通过引用传递的 System.Windows.Forms.Message,它表示要处理的窗口消息。
//
// 返回结果:
// 如果消息已由控件处理,则为 true;否则为 false。
protected internal virtual bool ProcessKeyMessage(ref Message m);
//
// 摘要:
// 处理助记键字符。
//
// 参数:
// charCode:
// 要处理的字符。
//
// 返回结果:
// 如果字符由控件作为助记键处理,则为 true;否则为 false。
protected internal virtual bool ProcessMnemonic(char charCode);
//
// 摘要:
// 将指定的 System.Drawing.ContentAlignment 转换为相应的 System.Drawing.ContentAlignment 以支持从右向左的文本。
//
// 参数:
// align:
// System.Drawing.ContentAlignment 值之一。
//
// 返回结果:
// System.Drawing.ContentAlignment 值之一。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected internal ContentAlignment RtlTranslateContent(ContentAlignment align);
//
// 摘要:
// 用当前大小和位置更新控件的边界。
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected internal void UpdateBounds(); //
// 摘要:
// 提供关于可以供辅助功能应用程序使用的控件的信息。
[ComVisible(true)]
public class ControlAccessibleObject : AccessibleObject
{
//
// 摘要:
// 初始化 System.Windows.Forms.Control.ControlAccessibleObject 类的新实例。
//
// 参数:
// ownerControl:
// 拥有 System.Windows.Forms.Control.ControlAccessibleObject 的 System.Windows.Forms.Control。
//
// 异常:
// T:System.ArgumentNullException:
// ownerControl 参数值为 null。
public ControlAccessibleObject(Control ownerControl); //
// 返回结果:
// 对象默认操作的说明,或者,如果此对象没有默认操作,则为 null。
public override string DefaultAction { get; }
//
// 摘要:
// 获取 System.Windows.Forms.Control.ControlAccessibleObject 的说明。
//
// 返回结果:
// 描述 System.Windows.Forms.Control.ControlAccessibleObject 的字符串。
public override string Description { get; }
//
// 摘要:
// 获取或设置辅助性对象的句柄。
//
// 返回结果:
// System.IntPtr,它表示控件的句柄。
public IntPtr Handle { get; set; }
//
// 摘要:
// 获取有关对象的用途或用法的说明。
//
// 返回结果:
// 对象用途或如何使用对象的说明。
public override string Help { get; }
//
// 摘要:
// 获取辅助性对象的快捷键或访问键。
//
// 返回结果:
// 辅助性对象的对象快捷键或访问键,或者,如果没有与此对象相关联的快捷键,则是 null。
public override string KeyboardShortcut { get; }
//
// 摘要:
// 获取或设置辅助性对象名。
//
// 返回结果:
// 辅助性对象名。
public override string Name { get; set; }
//
// 摘要:
// 获取辅助性对象的所有者。
//
// 返回结果:
// 拥有 System.Windows.Forms.Control.ControlAccessibleObject 的 System.Windows.Forms.Control。
public Control Owner { get; }
//
// 返回结果:
// System.Windows.Forms.AccessibleObject,表示辅助性对象的父级,或者,如果没有父对象,则是 null。
public override AccessibleObject Parent { get; }
//
// 摘要:
// 获取此辅助性对象的角色。
//
// 返回结果:
// System.Windows.Forms.AccessibleRole 值之一。
public override AccessibleRole Role { get; } //
// 摘要:
// 获取帮助主题标识符及与该辅助性对象相关的帮助文件的路径。
//
// 参数:
// fileName:
// 当此方法返回时将包含一个字符串,该字符串表示与此辅助功能对象关联的帮助文件的路径。该参数未经初始化即被传递。
//
// 返回结果:
// 帮助主题的标识符,或者,如果没有帮助主题,则为 -1。当返回时,fileName 参数将包含与此辅助功能对象关联的帮助文件的路径;如果未指定任何 IAccessible
// 接口,则为 null。
public override int GetHelpTopic(out string fileName);
//
// 摘要:
// 通知指定的 System.Windows.Forms.AccessibleEvents 的辅助功能客户端应用程序。
//
// 参数:
// accEvent:
// 要将其通报给具有辅助功能的客户端应用程序的 System.Windows.Forms.AccessibleEvents。
public void NotifyClients(AccessibleEvents accEvent);
//
// 摘要:
// 就指定的子控件的指定 System.Windows.Forms.AccessibleEvents 通知辅助功能客户端应用程序。
//
// 参数:
// accEvent:
// 要将其通报给具有辅助功能的客户端应用程序的 System.Windows.Forms.AccessibleEvents。
//
// childID:
// 就该辅助性事件要通知的子 System.Windows.Forms.Control。
public void NotifyClients(AccessibleEvents accEvent, int childID);
//
// 摘要:
// 就指定的子控件的指定 System.Windows.Forms.AccessibleEvents 通知辅助功能客户端应用程序,给定 System.Windows.Forms.AccessibleObject
// 的标识。
//
// 参数:
// accEvent:
// 要将其通报给具有辅助功能的客户端应用程序的 System.Windows.Forms.AccessibleEvents。
//
// objectID:
// System.Windows.Forms.AccessibleObject 的标识符。
//
// childID:
// 就该辅助性事件要通知的子 System.Windows.Forms.Control。
public void NotifyClients(AccessibleEvents accEvent, int objectID, int childID);
//
// 返回结果:
// System.String,表示当前的 System.Object。
public override string ToString();
}
//
// 摘要:
// 表示 System.Windows.Forms.Control 对象的集合。
[ComVisible(false)]
[DefaultMember("Item")]
[ListBindable(false)]
public class ControlCollection : ArrangedElementCollection, IList, ICollection, IEnumerable, ICloneable
{
//
// 摘要:
// 初始化 System.Windows.Forms.Control.ControlCollection 类的新实例。
//
// 参数:
// owner:
// System.Windows.Forms.Control,它表示拥有控件集合的控件。
public ControlCollection(Control owner); //
// 摘要:
// 指示集合中具有指定键的一个 System.Windows.Forms.Control。
//
// 参数:
// key:
// 要从控件集合中检索的控件的名称。
//
// 返回结果:
// System.Windows.Forms.Control.ControlCollection 中具有指定键的 System.Windows.Forms.Control。
public virtual Control this[string key] { get; }
//
// 摘要:
// 指示位于集合中指定索引位置的 System.Windows.Forms.Control。
//
// 参数:
// index:
// 要从控件集合中检索的控件索引。
//
// 返回结果:
// 位于控件集合内指定索引位置的 System.Windows.Forms.Control。
//
// 异常:
// T:System.ArgumentOutOfRangeException:
// index 值小于零或者大于等于集合中控件的数量。
public virtual Control this[int index] { get; } //
// 摘要:
// 获取拥有此 System.Windows.Forms.Control.ControlCollection 的控件。
//
// 返回结果:
// 拥有此 System.Windows.Forms.Control.ControlCollection 的 System.Windows.Forms.Control。
public Control Owner { get; } //
// 摘要:
// 将指定的控件添加到控件集合中。
//
// 参数:
// value:
// 要添加到控件集合的 System.Windows.Forms.Control。
//
// 异常:
// T:System.Exception:
// 指定的控件是*控件,或者如果将该控件添加到控件集合中,将导致循环控件引用。
//
// T:System.ArgumentException:
// 分配到 value 参数的对象不是 System.Windows.Forms.Control。
public virtual void Add(Control value);
//
// 摘要:
// 将控件对象数组添加到集合中。
//
// 参数:
// controls:
// 要添加到集合中的 System.Windows.Forms.Control 对象的数组。
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public virtual void AddRange(Control[] controls);
//
// 摘要:
// 从集合中移除所有控件。
public virtual void Clear();
//
// 摘要:
// 确定指定控件是否为集合的成员。
//
// 参数:
// control:
// 要在集合中定位的 System.Windows.Forms.Control。
//
// 返回结果:
// 如果 System.Windows.Forms.Control 是集合的成员,则为 true;否则为 false。
public bool Contains(Control control);
//
// 摘要:
// 确定 System.Windows.Forms.Control.ControlCollection 是否包含具有指定键的项。
//
// 参数:
// key:
// 要在 System.Windows.Forms.Control.ControlCollection 中定位的键。
//
// 返回结果:
// 如果 System.Windows.Forms.Control.ControlCollection 包含具有指定键的项,则为 true;否则为 false。
public virtual bool ContainsKey(string key);
//
// 摘要:
// 根据控件的 System.Windows.Forms.Control.Name 属性搜索控件并生成由所有匹配项组成的数组。
//
// 参数:
// key:
// 要在 System.Windows.Forms.Control.ControlCollection 中定位的键。
//
// searchAllChildren:
// 如果搜索所有子控件,则为 true;否则为 false。
//
// 返回结果:
// 包含匹配控件的 System.Windows.Forms.Control 类型数组。
//
// 异常:
// T:System.ArgumentException:
// key 参数为 null 或是空字符串 ("")。
public Control[] Find(string key, bool searchAllChildren);
//
// 摘要:
// 检索控件集合内的指定子控件的索引。
//
// 参数:
// child:
// 要在控件集合中搜索的 System.Windows.Forms.Control。
//
// 返回结果:
// 从零开始的索引值,它表示指定的子控件在控件集合中的位置。
//
// 异常:
// T:System.ArgumentException:
// child System.Windows.Forms.Control 不在 System.Windows.Forms.Control.ControlCollection
// 中。
public int GetChildIndex(Control child);
//
// 摘要:
// 检索控件集合内的指定子控件的索引,并且如果指定控件不在控件集合内,也可能引发异常。
//
// 参数:
// child:
// 要在控件集合中搜索的 System.Windows.Forms.Control。
//
// throwException:
// 如果 child 参数中指定的 System.Windows.Forms.Control 不是 System.Windows.Forms.Control.ControlCollection
// 中的控件即引发异常,则为 true;否则为 false。
//
// 返回结果:
// 一个从零开始的索引值,它表示指定的子控件在控件集合中的位置;如果在 System.Windows.Forms.Control.ControlCollection
// 中未找到指定的 System.Windows.Forms.Control,则索引值为 -1。
//
// 异常:
// T:System.ArgumentException:
// child System.Windows.Forms.Control 不在 System.Windows.Forms.Control.ControlCollection
// 中,且 throwException 参数值为 true。
public virtual int GetChildIndex(Control child, bool throwException);
//
// 摘要:
// 检索对用于循环访问 System.Windows.Forms.Control.ControlCollection 的枚举数对象的引用。
//
// 返回结果:
// 一个 System.Collections.IEnumerator。
public override IEnumerator GetEnumerator();
//
// 摘要:
// 检索控件集合中指定控件的索引。
//
// 参数:
// control:
// 要在集合中定位的 System.Windows.Forms.Control。
//
// 返回结果:
// 一个从零开始的索引值,它表示 System.Windows.Forms.Control.ControlCollection 中的指定 System.Windows.Forms.Control
// 的位置。
public int IndexOf(Control control);
//
// 摘要:
// 检索指定项在集合中的第一个匹配项的索引。
//
// 参数:
// key:
// 要搜索的控件的名称。
//
// 返回结果:
// 具有指定名称的控件在集合中的第一个匹配项的从零开始的索引。
public virtual int IndexOfKey(string key);
//
// 摘要:
// 从控件集合中移除指定的控件。
//
// 参数:
// value:
// 要从 System.Windows.Forms.Control.ControlCollection 移除的 System.Windows.Forms.Control。
public virtual void Remove(Control value);
//
// 摘要:
// 在指定的索引位置从控件集合移除控件。
//
// 参数:
// index:
// 要移除的 System.Windows.Forms.Control 的索引值。
public void RemoveAt(int index);
//
// 摘要:
// 移除具有指定键的子控件。
//
// 参数:
// key:
// 要移除的子控件的名称。
public virtual void RemoveByKey(string key);
//
// 摘要:
// 将集合中的指定子控件的索引设置为指定的索引值。
//
// 参数:
// child:
// 要搜索的 childSystem.Windows.Forms.Control。
//
// newIndex:
// 控件的新索引值。
//
// 异常:
// T:System.ArgumentException:
// child 控件不在 System.Windows.Forms.Control.ControlCollection 中。
public virtual void SetChildIndex(Control child, int newIndex);
}
}
}
上一篇:Ethereum Dapp Tutorial — Part 1


下一篇:(转)synchronized和lock的区别