DataGridTextBox 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
DataGrid is provided for binary compatibility with .NET Framework and is not intended to be used directly from your code. Use DataGridView instead.
表示 TextBox 托管在一个 DataGridTextBoxColumn控件中的控件。
public ref class DataGridTextBox : System::Windows::Forms::TextBox
public class DataGridTextBox : System.Windows.Forms.TextBox
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
public class DataGridTextBox : System.Windows.Forms.TextBox
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.ComponentModel.Browsable(false)]
[System.Obsolete("`DataGrid` is provided for binary compatibility with .NET Framework and is not intended to be used directly from your code. Use `DataGridView` instead.", false, DiagnosticId="WFDEV006", UrlFormat="https://aka.ms/winforms-warnings/{0}")]
public class DataGridTextBox : System.Windows.Forms.TextBox
type DataGridTextBox = class
inherit TextBox
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type DataGridTextBox = class
inherit TextBox
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.ComponentModel.Browsable(false)>]
[<System.Obsolete("`DataGrid` is provided for binary compatibility with .NET Framework and is not intended to be used directly from your code. Use `DataGridView` instead.", false, DiagnosticId="WFDEV006", UrlFormat="https://aka.ms/winforms-warnings/{0}")>]
type DataGridTextBox = class
inherit TextBox
Public Class DataGridTextBox
Inherits TextBox
- 继承
- 属性
示例
下面的代码示例演示如何获取 DataGridTextBox 由 a DataGridTextBoxColumn.
private:
void GetDataGridTextBox()
{
// Get the DataGridTextBoxColumn from the DataGrid control.
DataGridTextBoxColumn^ myTextBoxColumn;
// Assuming the CompanyName column is a DataGridTextBoxColumn.
myTextBoxColumn = dynamic_cast<DataGridTextBoxColumn^>(dataGrid1->TableStyles[ 0 ]->GridColumnStyles[ "CompanyName" ]);
// Get the DataGridTextBox for the column.
DataGridTextBox^ myGridTextBox;
myGridTextBox = dynamic_cast<DataGridTextBox^>(myTextBoxColumn->TextBox);
}
private void GetDataGridTextBox()
{
// Gets the DataGridTextBoxColumn from the DataGrid control.
DataGridTextBoxColumn myTextBoxColumn;
// Assumes the CompanyName column is a DataGridTextBoxColumn.
myTextBoxColumn = (DataGridTextBoxColumn)dataGrid1.
TableStyles[0].GridColumnStyles["CompanyName"];
// Gets the DataGridTextBox for the column.
DataGridTextBox myGridTextBox;
myGridTextBox = (DataGridTextBox) myTextBoxColumn.TextBox;
}
Private Sub GetDataGridTextBox()
' Gets the DataGridTextBoxColumn from the DataGrid control.
Dim myTextBoxColumn As DataGridTextBoxColumn
' Assumes the CompanyName column is a DataGridTextBoxColumn.
myTextBoxColumn = CType(dataGrid1.TableStyles(0). _
GridColumnStyles("CompanyName"), DataGridTextBoxColumn)
' Gets the DataGridTextBox for the column.
Dim myGridTextBox As DataGridTextBox
myGridTextBox = CType(myTextBoxColumn.TextBox, DataGridTextBox)
End Sub
注解
DataGridTextBox和DataGridTextBoxColumn协同工作,以便用户可以直接编辑控件列中的值DataGrid。 派生自 DataGridTextBoxColumn,设计为承载 DataGridColumnStyle,而 DataGridColumnStyle 派生自 TextBox 控件。
除了基本控件的属性、事件和方法外,还可以使用KeyPress和KeyDown方法调用OnKeyPress和OnMouseDown事件。
构造函数
| 名称 | 说明 |
|---|---|
| DataGridTextBox() |
已过时.
初始化 DataGridTextBox 类的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| AcceptsReturn |
已过时.
获取或设置一个值,该值指示在多行 TextBox 控件中按 Enter 是创建控件中的新文本行还是激活窗体的默认按钮。 (继承自 TextBox) |
| AcceptsTab |
已过时.
获取或设置一个值,该值指示在多行文本框控件中按 TAB 键是否键入控件中的 TAB 字符,而不是将焦点移动到 Tab 键顺序中的下一个控件。 (继承自 TextBoxBase) |
| AccessibilityObject |
已过时.
AccessibleObject获取分配给控件的控件。 (继承自 Control) |
| AccessibleDefaultActionDescription |
已过时.
获取或设置控件的默认操作说明,以供辅助功能客户端应用程序使用。 (继承自 Control) |
| AccessibleDescription |
已过时.
获取或设置辅助功能客户端应用程序使用的控件的说明。 (继承自 Control) |
| AccessibleName |
已过时.
获取或设置辅助功能客户端应用程序使用的控件的名称。 (继承自 Control) |
| AccessibleRole |
已过时.
获取或设置控件的可访问角色。 (继承自 Control) |
| AllowDrop |
已过时.
获取或设置一个值,该值指示控件是否可以接受用户拖动到其中的数据。 (继承自 Control) |
| Anchor |
已过时.
获取或设置控件绑定到的容器的边缘,并确定控件的父级如何调整其大小。 (继承自 Control) |
| AutoCompleteCustomSource |
已过时.
获取或设置 StringCollection 在 AutoCompleteSource 属性设置为 |
| AutoCompleteMode |
已过时.
获取或设置一个选项,该选项控制自动完成的工作原理 TextBox。 (继承自 TextBox) |
| AutoCompleteSource |
已过时.
获取或设置一个值,该值指定用于自动完成的完整字符串的源。 (继承自 TextBox) |
| AutoScrollOffset |
已过时.
获取或设置此控件滚动到的位置 ScrollControlIntoView(Control)。 (继承自 Control) |
| AutoSize |
已过时.
获取或设置一个值,该值指示在更改分配给控件的字体时控件的高度是否自动调整。 (继承自 TextBoxBase) |
| BackColor |
已过时.
获取或设置控件的背景色。 (继承自 TextBoxBase) |
| BackgroundImage |
已过时.
此属性与此类无关。 (继承自 TextBoxBase) |
| BackgroundImageLayout |
已过时.
此属性与此类无关。 (继承自 TextBoxBase) |
| BindingContext |
已过时.
获取或设置 BindingContext 控件。 (继承自 Control) |
| BorderStyle |
已过时.
获取或设置文本框控件的边框类型。 (继承自 TextBoxBase) |
| Bottom |
已过时.
获取控件的下边缘与其容器工作区的上边缘之间的距离(以像素为单位)。 (继承自 Control) |
| Bounds |
已过时.
获取或设置控件的大小和位置,包括其相对于父控件的非client 元素(以像素为单位)。 (继承自 Control) |
| CanEnableIme |
已过时.
获取一个值,该值指示属性是否可以 ImeMode 设置为活动值,以启用 IME 支持。 (继承自 TextBoxBase) |
| CanFocus |
已过时.
获取一个值,该值指示控件是否可以接收焦点。 (继承自 Control) |
| CanRaiseEvents |
已过时.
确定是否可以在控件上引发事件。 (继承自 Control) |
| CanSelect |
已过时.
获取一个值,该值指示是否可以选择控件。 (继承自 Control) |
| CanUndo |
已过时.
获取一个值,该值指示用户是否可以撤消文本框控件中的上一操作。 (继承自 TextBoxBase) |
| Capture |
已过时.
获取或设置一个值,该值指示控件是否已捕获鼠标。 (继承自 Control) |
| CausesValidation |
已过时.
获取或设置一个值,该值指示控件是否导致验证在收到焦点时需要验证的任何控件上执行。 (继承自 Control) |
| CharacterCasing |
已过时.
获取或设置控件是否 TextBox 在键入字符时修改字符大小写。 (继承自 TextBox) |
| ClientRectangle |
已过时.
获取表示控件工作区的矩形。 (继承自 Control) |
| ClientSize |
已过时.
获取或设置控件工作区的高度和宽度。 (继承自 Control) |
| CompanyName |
已过时.
获取包含控件的应用程序的公司或创建者的名称。 (继承自 Control) |
| Container |
已过时.
IContainer获取包含 .Component (继承自 Component) |
| ContainsFocus |
已过时.
获取一个值,该值指示控件或其子控件之一当前是否具有输入焦点。 (继承自 Control) |
| ContextMenu |
已过时.
获取或设置与控件关联的快捷菜单。 (继承自 Control) |
| ContextMenuStrip |
已过时.
获取或设置 ContextMenuStrip 与此控件关联的值。 (继承自 Control) |
| Controls |
已过时.
获取控件中包含的控件的集合。 (继承自 Control) |
| Created |
已过时.
获取一个值,该值指示是否已创建控件。 (继承自 Control) |
| CreateParams |
已过时.
获取创建控件句柄时所需的创建参数。 (继承自 TextBox) |
| Cursor |
已过时.
获取或设置鼠标指针位于控件上时显示的光标。 (继承自 Control) |
| DataBindings |
已过时.
获取控件的数据绑定。 (继承自 Control) |
| DataContext |
已过时.
获取或设置用于数据绑定的数据上下文。 这是一个环境属性。 (继承自 Control) |
| DefaultCursor |
已过时.
获取或设置控件的默认游标。 (继承自 TextBoxBase) |
| DefaultImeMode |
已过时.
获取控件支持的默认输入法编辑器 (IME) 模式。 (继承自 TextBox) |
| DefaultMargin |
已过时.
获取默认情况下在控件之间指定的空间(以像素为单位)。 (继承自 Control) |
| DefaultMaximumSize |
已过时.
获取指定为控件的默认最大大小的长度和高度(以像素为单位)。 (继承自 Control) |
| DefaultMinimumSize |
已过时.
获取指定为控件的默认最小大小的长度和高度(以像素为单位)。 (继承自 Control) |
| DefaultPadding |
已过时.
获取控件内容的默认内部间距(以像素为单位)。 (继承自 Control) |
| DefaultSize |
已过时.
获取控件的默认大小。 (继承自 TextBoxBase) |
| DesignMode |
已过时.
获取一个值,该值指示当前是否 Component 处于设计模式。 (继承自 Component) |
| DeviceDpi |
已过时.
获取当前显示控件的显示设备的 DPI 值。 (继承自 Control) |
| DisplayRectangle |
已过时.
获取表示控件的显示区域的矩形。 (继承自 Control) |
| Disposing |
已过时.
获取一个值,该值指示基 Control 类是否正在处理。 (继承自 Control) |
| Dock |
已过时.
获取或设置哪些控件边框停靠到其父控件,并确定控件如何调整其父级的大小。 (继承自 Control) |
| DoubleBuffered |
已过时.
获取或设置一个值,该值指示控件绘图是否在显示控件之前在缓冲区中完成。 此属性与此类无关。 (继承自 TextBoxBase) |
| Enabled |
已过时.
获取或设置一个值,该值指示控件是否可以响应用户交互。 (继承自 Control) |
| Events |
已过时.
获取附加到此 Component对象的事件处理程序的列表。 (继承自 Component) |
| Focused |
已过时.
获取一个值,该值指示控件是否具有输入焦点。 (继承自 Control) |
| Font |
已过时.
获取或设置控件显示的文本的字体。 (继承自 Control) |
| FontHeight |
已过时.
获取或设置控件字体的高度。 (继承自 Control) |
| ForeColor |
已过时.
获取或设置控件的前景色。 (继承自 TextBoxBase) |
| Handle |
已过时.
获取控件绑定到的窗口句柄。 (继承自 Control) |
| HasChildren |
已过时.
获取一个值,该值指示控件是否包含一个或多个子控件。 (继承自 Control) |
| Height |
已过时.
获取或设置控件的高度。 (继承自 Control) |
| HideSelection |
已过时.
获取或设置一个值,该值指示当控件失去焦点时,文本框控件中的选定文本是否保持突出显示状态。 (继承自 TextBoxBase) |
| ImeMode |
已过时.
获取或设置控件的输入法编辑器 (IME) 模式。 (继承自 Control) |
| ImeModeBase |
已过时.
获取或设置控件的输入法编辑器 (IME) 模式。 (继承自 TextBoxBase) |
| InvokeRequired |
已过时.
获取一个值,该值指示调用方在对控件进行方法调用时是否必须调用调用方法,因为调用方与创建控件的线程不同。 (继承自 Control) |
| IsAccessible |
已过时.
获取或设置一个值,该值指示控件是否对辅助功能应用程序可见。 (继承自 Control) |
| IsAncestorSiteInDesignMode |
已过时.
指示此控件的上级位置之一是否位于 DesignMode 中。 此属性为只读。 (继承自 Control) |
| IsDisposed |
已过时.
获取一个值,该值指示控件是否已释放。 (继承自 Control) |
| IsHandleCreated |
已过时.
获取一个值,该值指示控件是否具有与之关联的句柄。 (继承自 Control) |
| IsInEditOrNavigateMode |
已过时.
获取或设置一个值,该值 DataGridTextBox 指示是处于允许编辑还是导航的模式。 |
| IsMirrored |
已过时.
获取一个值,该值指示控件是否镜像。 (继承自 Control) |
| LayoutEngine |
已过时.
获取控件布局引擎的缓存实例。 (继承自 Control) |
| Left |
已过时.
获取或设置控件左边缘与其容器工作区的左边缘之间的距离(以像素为单位)。 (继承自 Control) |
| Lines |
已过时.
获取或设置文本框控件中的文本行。 (继承自 TextBoxBase) |
| Location |
已过时.
获取或设置控件左上角相对于其容器左上角的坐标。 (继承自 Control) |
| Margin |
已过时.
获取或设置控件之间的间距。 (继承自 Control) |
| MaximumSize |
已过时.
获取或设置可指定上限 GetPreferredSize(Size) 的大小。 (继承自 Control) |
| MaxLength |
已过时.
获取或设置用户可键入或粘贴到文本框控件中的最大字符数。 (继承自 TextBoxBase) |
| MinimumSize |
已过时.
获取或设置可以指定的下限 GetPreferredSize(Size) 的大小。 (继承自 Control) |
| Modified |
已过时.
获取或设置一个值,该值指示自创建控件或其内容上次设置后,用户已修改文本框控件。 (继承自 TextBoxBase) |
| Multiline |
已过时.
获取或设置一个值,该值指示这是否为多行 TextBox 控件。 (继承自 TextBox) |
| Name |
已过时.
获取或设置控件的名称。 (继承自 Control) |
| Padding |
已过时.
此属性与此类无关。 (继承自 TextBoxBase) |
| Parent |
已过时.
获取或设置控件的父容器。 (继承自 Control) |
| PasswordChar |
已过时.
获取或设置用于屏蔽单行 TextBox 控件中密码字符的字符。 (继承自 TextBox) |
| PlaceholderText |
已过时.
获取或设置控件没有文本且没有焦点时显示的文本。 (继承自 TextBox) |
| PreferredHeight |
已过时.
获取文本框的首选高度。 (继承自 TextBoxBase) |
| PreferredSize |
已过时.
获取控件可以容纳到的矩形区域的大小。 (继承自 Control) |
| ProductName |
已过时.
获取包含控件的程序集的产品名称。 (继承自 Control) |
| ProductVersion |
已过时.
获取包含控件的程序集的版本。 (继承自 Control) |
| ReadOnly |
已过时.
获取或设置一个值,该值指示文本框中的文本是否为只读。 (继承自 TextBoxBase) |
| RecreatingHandle |
已过时.
获取一个值,该值指示控件当前是否正在重新创建其句柄。 (继承自 Control) |
| Region |
已过时.
获取或设置与控件关联的窗口区域。 (继承自 Control) |
| RenderRightToLeft |
已过时.
已过时.
此属性现已过时。 (继承自 Control) |
| ResizeRedraw |
已过时.
获取或设置一个值,该值指示控件在调整大小时是否重新绘制自身。 (继承自 Control) |
| Right |
已过时.
获取控件右边缘与其容器工作区的左边缘之间的距离(以像素为单位)。 (继承自 Control) |
| RightToLeft |
已过时.
获取或设置一个值,该值指示控件的元素是否对齐以支持使用从右到左字体的区域设置。 (继承自 Control) |
| ScaleChildren |
已过时.
获取一个值,该值确定子控件的缩放。 (继承自 Control) |
| ScrollBars |
已过时.
获取或设置应在多行 TextBox 控件中显示的滚动条。 (继承自 TextBox) |
| SelectedText |
已过时.
获取或设置一个值,该值指示控件中当前选定的文本。 (继承自 TextBoxBase) |
| SelectionLength |
已过时.
获取或设置在文本框的可编辑部分选择的字符数。 (继承自 TextBox) |
| SelectionStart |
已过时.
获取或设置文本框中所选文本的起点。 (继承自 TextBoxBase) |
| ShortcutsEnabled |
已过时.
获取或设置一个值,该值指示是否启用定义的快捷方式。 (继承自 TextBoxBase) |
| ShowFocusCues |
已过时.
获取一个值,该值指示控件是否应显示焦点矩形。 (继承自 Control) |
| ShowKeyboardCues |
已过时.
获取一个值,该值指示用户界面是否处于适当的状态以显示或隐藏键盘加速器。 (继承自 Control) |
| Site |
已过时.
获取或设置控件的站点。 (继承自 Control) |
| Size |
已过时.
获取或设置控件的高度和宽度。 (继承自 Control) |
| TabIndex |
已过时.
获取或设置控件在其容器中的 Tab 键顺序。 (继承自 Control) |
| TabStop |
已过时.
获取或设置一个值,该值指示用户是否可以使用 TAB 键向此控件提供焦点。 (继承自 Control) |
| Tag |
已过时.
获取或设置包含有关控件的数据的对象。 (继承自 Control) |
| Text |
已过时.
获取或设置与此控件关联的文本。 (继承自 TextBox) |
| TextAlign |
已过时.
获取或设置文本在控件中的 TextBox 对齐方式。 (继承自 TextBox) |
| TextLength |
已过时.
获取控件中的文本长度。 (继承自 TextBoxBase) |
| Top |
已过时.
获取或设置控件上边缘与其容器工作区上边缘之间的距离(以像素为单位)。 (继承自 Control) |
| TopLevelControl |
已过时.
获取另一个Windows 窗体控件未父控件的父控件。 通常,这是控件包含在的最外层 Form 。 (继承自 Control) |
| UseSystemPasswordChar |
已过时.
获取或设置一个值,该值指示控件中的 TextBox 文本是否应显示为默认密码字符。 (继承自 TextBox) |
| UseWaitCursor |
已过时.
获取或设置一个值,该值指示是否对当前控件和所有子控件使用等待游标。 (继承自 Control) |
| Visible |
已过时.
获取或设置一个值,该值指示是否显示控件及其所有子控件。 (继承自 Control) |
| Width |
已过时.
获取或设置控件的宽度。 (继承自 Control) |
| WindowTarget |
已过时.
此属性与此类无关。 (继承自 Control) |
| WordWrap |
已过时.
指示多行文本框控件是否在必要时自动将单词包装到下一行的开头。 (继承自 TextBoxBase) |
方法
活动
| 名称 | 说明 |
|---|---|
| AcceptsTabChanged |
已过时.
当属性的值 AcceptsTab 发生更改时发生。 (继承自 TextBoxBase) |
| AutoSizeChanged |
已过时.
此事件与此类无关。 (继承自 TextBoxBase) |
| BackColorChanged |
已过时.
当 BackColor 属性的值更改时发生。 (继承自 Control) |
| BackgroundImageChanged |
已过时.
当 BackgroundImage 属性的值更改时发生。 此事件与此类无关。 (继承自 TextBoxBase) |
| BackgroundImageLayoutChanged |
已过时.
当 BackgroundImageLayout 属性的值更改时发生。 此事件与此类无关。 (继承自 TextBoxBase) |
| BindingContextChanged |
已过时.
当 BindingContext 属性的值更改时发生。 (继承自 Control) |
| BorderStyleChanged |
已过时.
当属性的值 BorderStyle 发生更改时发生。 (继承自 TextBoxBase) |
| CausesValidationChanged |
已过时.
当 CausesValidation 属性的值更改时发生。 (继承自 Control) |
| ChangeUICues |
已过时.
焦点或键盘用户界面(UI)提示更改时发生。 (继承自 Control) |
| Click |
已过时.
单击文本框时发生。 (继承自 TextBoxBase) |
| ClientSizeChanged |
已过时.
当 ClientSize 属性的值更改时发生。 (继承自 Control) |
| ContextMenuChanged |
已过时.
当 ContextMenu 属性的值更改时发生。 (继承自 Control) |
| ContextMenuStripChanged |
已过时.
当 ContextMenuStrip 属性的值更改时发生。 (继承自 Control) |
| ControlAdded |
已过时.
将新控件添加到该控件 Control.ControlCollection时发生。 (继承自 Control) |
| ControlRemoved |
已过时.
从中删除 Control.ControlCollection控件时发生 。 (继承自 Control) |
| CursorChanged |
已过时.
当 Cursor 属性的值更改时发生。 (继承自 Control) |
| DataContextChanged |
已过时.
当 DataContext 属性的值更改时发生。 (继承自 Control) |
| Disposed |
已过时.
当组件通过对方法的调用 Dispose() 释放时发生。 (继承自 Component) |
| DockChanged |
已过时.
当 Dock 属性的值更改时发生。 (继承自 Control) |
| DoubleClick |
已过时.
双击控件时发生。 (继承自 Control) |
| DpiChangedAfterParent |
已过时.
在控件的父控件或窗体的 DPI 更改后,以编程方式更改控件的 DPI 设置时发生。 (继承自 Control) |
| DpiChangedBeforeParent |
已过时.
在控件的父控件或窗体发生 DPI 更改事件之前,以编程方式更改控件的 DPI 设置时发生。 (继承自 Control) |
| DragDrop |
已过时.
完成拖放操作时发生。 (继承自 Control) |
| DragEnter |
已过时.
当对象被拖动到控件的边界时发生。 (继承自 Control) |
| DragLeave |
已过时.
当对象被拖出控件的边界时发生。 (继承自 Control) |
| DragOver |
已过时.
当对象拖动到控件边界上时发生。 (继承自 Control) |
| EnabledChanged |
已过时.
在 Enabled 属性值更改后发生。 (继承自 Control) |
| Enter |
已过时.
输入控件时发生。 (继承自 Control) |
| FontChanged |
已过时.
当 Font 属性值更改时发生。 (继承自 Control) |
| ForeColorChanged |
已过时.
当 ForeColor 属性值更改时发生。 (继承自 Control) |
| GiveFeedback |
已过时.
在拖动操作期间发生。 (继承自 Control) |
| GotFocus |
已过时.
当控件收到焦点时发生。 (继承自 Control) |
| HandleCreated |
已过时.
为控件创建句柄时发生。 (继承自 Control) |
| HandleDestroyed |
已过时.
当控件的句柄正在销毁时发生。 (继承自 Control) |
| HelpRequested |
已过时.
当用户请求控件帮助时发生。 (继承自 Control) |
| HideSelectionChanged |
已过时.
当属性的值 HideSelection 发生更改时发生。 (继承自 TextBoxBase) |
| ImeModeChanged |
已过时.
属性 ImeMode 已更改时发生。 (继承自 Control) |
| Invalidated |
已过时.
当控件的显示需要重绘时发生。 (继承自 Control) |
| KeyDown |
已过时.
当控件具有焦点时按下键时发生。 (继承自 Control) |
| KeyPress |
已过时.
当控件具有焦点时按下字符、空格或反空间键时发生。 (继承自 Control) |
| KeyUp |
已过时.
当控件具有焦点时释放键时发生。 (继承自 Control) |
| Layout |
已过时.
当控件应重新定位其子控件时发生。 (继承自 Control) |
| Leave |
已过时.
当输入焦点离开控件时发生。 (继承自 Control) |
| LocationChanged |
已过时.
在 Location 属性值更改后发生。 (继承自 Control) |
| LostFocus |
已过时.
当控件失去焦点时发生。 (继承自 Control) |
| MarginChanged |
已过时.
当控件的边距更改时发生。 (继承自 Control) |
| ModifiedChanged |
已过时.
当属性的值 Modified 发生更改时发生。 (继承自 TextBoxBase) |
| MouseCaptureChanged |
已过时.
当控件失去鼠标捕获时发生。 (继承自 Control) |
| MouseClick |
已过时.
当鼠标单击控件时发生。 (继承自 TextBoxBase) |
| MouseDoubleClick |
已过时.
在鼠标双击控件时发生。 (继承自 Control) |
| MouseDown |
已过时.
当鼠标指针位于控件上并按下鼠标按钮时发生。 (继承自 Control) |
| MouseEnter |
已过时.
当鼠标指针进入控件时发生。 (继承自 Control) |
| MouseHover |
已过时.
当鼠标指针停留在控件上时发生。 (继承自 Control) |
| MouseLeave |
已过时.
当鼠标指针离开控件时发生。 (继承自 Control) |
| MouseMove |
已过时.
当鼠标指针移到控件上时发生。 (继承自 Control) |
| MouseUp |
已过时.
当鼠标指针位于控件上并释放鼠标按钮时发生。 (继承自 Control) |
| MouseWheel |
已过时.
当鼠标滚轮在控件具有焦点时移动时发生。 (继承自 Control) |
| Move |
已过时.
移动控件时发生。 (继承自 Control) |
| MultilineChanged |
已过时.
当属性的值 Multiline 发生更改时发生。 (继承自 TextBoxBase) |
| PaddingChanged |
已过时.
此事件与此类无关。 (继承自 TextBoxBase) |
| Paint |
已过时.
重新绘制控件时发生。 此事件与此类无关。 (继承自 TextBoxBase) |
| ParentChanged |
已过时.
当 Parent 属性值更改时发生。 (继承自 Control) |
| PreviewKeyDown |
已过时.
当 KeyDown 焦点位于此控件上时按下键时,在事件发生之前发生。 (继承自 Control) |
| QueryAccessibilityHelp |
已过时.
在为辅助功能应用程序提供帮助时 AccessibleObject 发生。 (继承自 Control) |
| QueryContinueDrag |
已过时.
在拖放操作期间发生,并使拖动源能够确定是否应取消拖放操作。 (继承自 Control) |
| ReadOnlyChanged |
已过时.
当属性的值 ReadOnly 发生更改时发生。 (继承自 TextBoxBase) |
| RegionChanged |
已过时.
当 Region 属性的值更改时发生。 (继承自 Control) |
| Resize |
已过时.
调整控件大小时发生。 (继承自 Control) |
| RightToLeftChanged |
已过时.
当 RightToLeft 属性值更改时发生。 (继承自 Control) |
| SizeChanged |
已过时.
当 Size 属性值更改时发生。 (继承自 Control) |
| StyleChanged |
已过时.
当控件样式更改时发生。 (继承自 Control) |
| SystemColorsChanged |
已过时.
当系统颜色更改时发生。 (继承自 Control) |
| TabIndexChanged |
已过时.
当 TabIndex 属性值更改时发生。 (继承自 Control) |
| TabStopChanged |
已过时.
当 TabStop 属性值更改时发生。 (继承自 Control) |
| TextAlignChanged |
已过时.
当属性的值 TextAlign 发生更改时发生。 (继承自 TextBox) |
| TextChanged |
已过时.
当 Text 属性值更改时发生。 (继承自 Control) |
| Validated |
已过时.
在控件完成验证时发生。 (继承自 Control) |
| Validating |
已过时.
当控件正在验证时发生。 (继承自 Control) |
| VisibleChanged |
已过时.
当 Visible 属性值更改时发生。 (继承自 Control) |
显式接口实现
| 名称 | 说明 |
|---|---|
| IDropTarget.OnDragDrop(DragEventArgs) |
已过时.
引发 DragDrop 事件。 (继承自 Control) |
| IDropTarget.OnDragEnter(DragEventArgs) |
已过时.
引发 DragEnter 事件。 (继承自 Control) |
| IDropTarget.OnDragLeave(EventArgs) |
已过时.
引发 DragLeave 事件。 (继承自 Control) |
| IDropTarget.OnDragOver(DragEventArgs) |
已过时.
引发 DragOver 事件。 (继承自 Control) |