BindingNavigator 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示绑定到数据的窗体上的控件的导航和作用户界面(UI)。
public ref class BindingNavigator : System::Windows::Forms::ToolStrip, System::ComponentModel::ISupportInitialize
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
public class BindingNavigator : System.Windows.Forms.ToolStrip, System.ComponentModel.ISupportInitialize
public class BindingNavigator : System.Windows.Forms.ToolStrip, System.ComponentModel.ISupportInitialize
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type BindingNavigator = class
inherit ToolStrip
interface ISupportInitialize
type BindingNavigator = class
inherit ToolStrip
interface ISupportInitialize
Public Class BindingNavigator
Inherits ToolStrip
Implements ISupportInitialize
- 继承
- 属性
- 实现
示例
下面的代码示例演示如何使用 BindingNavigator 控件在数据集中移动。 集包含在一个DataViewTextBox包含组件的控件BindingSource中。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Data.SqlClient;
using System.Windows.Forms;
// This form demonstrates using a BindingNavigator to display
// rows from a database query sequentially.
public class Form1 : Form
{
// This is the BindingNavigator that allows the user
// to navigate through the rows in a DataSet.
BindingNavigator customersBindingNavigator = new BindingNavigator(true);
// This is the BindingSource that provides data for
// the Textbox control.
BindingSource customersBindingSource = new BindingSource();
// This is the TextBox control that displays the CompanyName
// field from the DataSet.
TextBox companyNameTextBox = new TextBox();
public Form1()
{
// Set up the BindingSource component.
this.customersBindingNavigator.BindingSource = this.customersBindingSource;
this.customersBindingNavigator.Dock = DockStyle.Top;
this.Controls.Add(this.customersBindingNavigator);
// Set up the TextBox control for displaying company names.
this.companyNameTextBox.Dock = DockStyle.Bottom;
this.Controls.Add(this.companyNameTextBox);
// Set up the form.
this.Size = new Size(800, 200);
this.Load += new EventHandler(Form1_Load);
}
void Form1_Load(object sender, EventArgs e)
{
// Open a connection to the database.
// Replace the value of connectString with a valid
// connection string to a Northwind database accessible
// to your system.
string connectString =
"Integrated Security=SSPI;Persist Security Info=False;" +
"Initial Catalog=Northwind;Data Source=localhost";
using (SqlConnection connection = new SqlConnection(connectString))
{
SqlDataAdapter dataAdapter1 =
new SqlDataAdapter(new SqlCommand("Select * From Customers",connection));
DataSet ds = new DataSet("Northwind Customers");
ds.Tables.Add("Customers");
dataAdapter1.Fill(ds.Tables["Customers"]);
// Assign the DataSet as the DataSource for the BindingSource.
this.customersBindingSource.DataSource = ds.Tables["Customers"];
// Bind the CompanyName field to the TextBox control.
this.companyNameTextBox.DataBindings.Add(
new Binding("Text",
this.customersBindingSource,
"CompanyName",
true));
}
}
[STAThread]
public static void Main()
{
Application.EnableVisualStyles();
Application.Run(new Form1());
}
}
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Data.SqlClient
Imports System.Windows.Forms
' This form demonstrates using a BindingNavigator to display
' rows from a database query sequentially.
Public Class Form1
Inherits Form
' This is the BindingNavigator that allows the user
' to navigate through the rows in a DataSet.
Private customersBindingNavigator As New BindingNavigator(True)
' This is the BindingSource that provides data for
' the Textbox control.
Private customersBindingSource As New BindingSource()
' This is the TextBox control that displays the CompanyName
' field from the DataSet.
Private companyNameTextBox As New TextBox()
Public Sub New()
' Set up the BindingSource component.
Me.customersBindingNavigator.BindingSource = Me.customersBindingSource
Me.customersBindingNavigator.Dock = DockStyle.Top
Me.Controls.Add(Me.customersBindingNavigator)
' Set up the TextBox control for displaying company names.
Me.companyNameTextBox.Dock = DockStyle.Bottom
Me.Controls.Add(Me.companyNameTextBox)
' Set up the form.
Me.Size = New Size(800, 200)
AddHandler Me.Load, AddressOf Form1_Load
End Sub
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
' Open a connection to the database.
' Replace the value of connectString with a valid
' connection string to a Northwind database accessible
' to your system.
Dim connectString As String = _
"Integrated Security=SSPI;Persist Security Info=False;" & _
"Initial Catalog=Northwind;Data Source=localhost"
Dim connection As New SqlConnection(connectString)
Try
Dim dataAdapter1 As New SqlDataAdapter( _
New SqlCommand("Select * From Customers", connection))
Dim ds As New DataSet("Northwind Customers")
ds.Tables.Add("Customers")
dataAdapter1.Fill(ds.Tables("Customers"))
' Assign the DataSet as the DataSource for the BindingSource.
Me.customersBindingSource.DataSource = ds.Tables("Customers")
' Bind the CompanyName field to the TextBox control.
Me.companyNameTextBox.DataBindings.Add(New Binding("Text", _
Me.customersBindingSource, "CompanyName", True))
Finally
connection.Dispose()
End Try
End Sub
<STAThread()> _
Public Shared Sub Main()
Application.EnableVisualStyles()
Application.Run(New Form1())
End Sub
End Class
注解
该 BindingNavigator 控件表示在窗体上导航和操作数据的一种标准化的方法。 在大多数情况下,一个 BindingNavigator 控件与一个 BindingSource 控件配对,以在窗体上的数据记录中移动并与之交互。 在这些情况下,该 BindingSource 属性设置为充当数据源的关联 System.Windows.Forms.BindingSource 组件。
默认情况下, BindingNavigator 控件的用户界面(UI)由一系列 ToolStrip 按钮、文本框和静态文本元素组成,用于最常见的数据相关操作,例如添加数据、删除数据和浏览数据。 每个控件都可以通过控件的 BindingNavigator 关联成员检索或设置。 同样,类中的 BindingSource 成员也存在一对一对应关系,这些成员以编程方式执行相同的功能,如下表所示。
| UI 控件 | BindingNavigator 成员 | BindingSource 成员 |
|---|---|---|
| 首先移动 | MoveFirstItem | MoveFirst |
| 上一步移动 | MovePreviousItem | MovePrevious |
| 当前位置 | PositionItem | Current |
| 计数 | CountItem | Count |
| 下一步移动 | MoveNextItem | MoveNext |
| 上移 | MoveLastItem | MoveLast |
| 添加新内容 | AddNewItem | AddNew |
| 删除 | DeleteItem | RemoveCurrent |
将 BindingNavigator 控件添加到窗体并将其绑定到数据源(如 a BindingSource)将自动建立此表中的关系。
可以使用以下方法之一来自定义此工具栏:
使用BindingNavigator接受布尔
addStandardItems参数的BindingNavigator(Boolean)构造函数创建,并将此参数设置为false。 然后将所需 ToolStripItem 对象添加到 Items 集合。如果需要大量自定义,或者将重复使用自定义设计,请从 BindingNavigator 中派生类并重写 AddStandardItems 该方法以定义其他或备用标准项。
构造函数
| 名称 | 说明 |
|---|---|
| BindingNavigator() |
初始化 BindingNavigator 类的新实例。 |
| BindingNavigator(BindingSource) |
使用指定BindingSource为数据源初始化类的新实例BindingNavigator。 |
| BindingNavigator(Boolean) |
初始化类的新实例 BindingNavigator ,指示是否显示标准导航用户界面(UI)。 |
| BindingNavigator(IContainer) |
初始化类的新实例 BindingNavigator ,并将此新实例添加到指定的容器。 |
字段
| 名称 | 说明 |
|---|---|
| ScrollStateAutoScrolling |
确定属性的值 AutoScroll 。 (继承自 ScrollableControl) |
| ScrollStateFullDrag |
确定用户是否已启用全屏拖动。 (继承自 ScrollableControl) |
| ScrollStateHScrollVisible |
确定属性的值 HScroll 是否设置为 |
| ScrollStateUserHasScrolled |
确定用户是否已滚动浏览控件 ScrollableControl 。 (继承自 ScrollableControl) |
| ScrollStateVScrollVisible |
确定属性的值 VScroll 是否设置为 |
属性
| 名称 | 说明 |
|---|---|
| AccessibilityObject |
AccessibleObject获取分配给控件的控件。 (继承自 Control) |
| AccessibleDefaultActionDescription |
获取或设置控件的默认操作说明,以供辅助功能客户端应用程序使用。 (继承自 Control) |
| AccessibleDescription |
获取或设置辅助功能客户端应用程序使用的控件的说明。 (继承自 Control) |
| AccessibleName |
获取或设置辅助功能客户端应用程序使用的控件的名称。 (继承自 Control) |
| AccessibleRole |
获取或设置控件的可访问角色。 (继承自 Control) |
| AddNewItem |
获取或设置 ToolStripItem 表示 “添加新 ”按钮的键。 |
| AllowClickThrough |
获取或设置一个值,该值指示当窗口没有焦点时是否要交互的控件。 (继承自 ToolStrip) |
| AllowDrop |
获取或设置一个值,该值指示是否通过实现的事件处理拖放和项重新排序。 (继承自 ToolStrip) |
| AllowItemReorder |
获取或设置一个值,该值指示拖放和项重新排序是否由 ToolStrip 类私下处理。 (继承自 ToolStrip) |
| AllowMerge |
获取或设置一个值,该值指示是否可以组合多个MenuStripToolStripDropDownMenuToolStripMenuItem类型、类型和其他类型。 (继承自 ToolStrip) |
| Anchor |
获取或设置绑定容器的 ToolStrip 边缘,并确定如何使用其父级调整大小 ToolStrip 。 (继承自 ToolStrip) |
| AutoScroll |
此属性与此类无关。 (继承自 ToolStrip) |
| AutoScrollMargin |
此属性与此类无关。 (继承自 ToolStrip) |
| AutoScrollMinSize |
此属性与此类无关。 (继承自 ToolStrip) |
| AutoScrollOffset |
获取或设置此控件滚动到的位置 ScrollControlIntoView(Control)。 (继承自 Control) |
| AutoScrollPosition |
此属性与此类无关。 (继承自 ToolStrip) |
| AutoSize |
获取或设置一个值,该值指示控件是否自动调整大小以显示其整个内容。 (继承自 ToolStrip) |
| BackColor |
获取或设置 . ToolStrip. 的背景色。 (继承自 ToolStrip) |
| BackgroundImage |
获取或设置控件中显示的背景图像。 (继承自 Control) |
| BackgroundImageLayout |
获取或设置枚举中 ImageLayout 定义的背景图像布局。 (继承自 Control) |
| BindingContext |
获取或设置 . 的 ToolStrip绑定上下文。 (继承自 ToolStrip) |
| BindingSource |
获取或设置 BindingSource 数据源的组件。 |
| Bottom |
获取控件的下边缘与其容器工作区的上边缘之间的距离(以像素为单位)。 (继承自 Control) |
| Bounds |
获取或设置控件的大小和位置,包括其相对于父控件的非client 元素(以像素为单位)。 (继承自 Control) |
| CanEnableIme |
获取一个值,该值指示属性是否可以 ImeMode 设置为活动值,以启用 IME 支持。 (继承自 Control) |
| CanFocus |
获取一个值,该值指示控件是否可以接收焦点。 (继承自 Control) |
| CanOverflow |
获取或设置一个值,该值指示是否可以将项 ToolStrip 发送到溢出菜单。 (继承自 ToolStrip) |
| CanRaiseEvents |
确定是否可以在控件上引发事件。 (继承自 Control) |
| CanSelect |
获取一个值,该值指示是否可以选择控件。 (继承自 Control) |
| Capture |
获取或设置一个值,该值指示控件是否已捕获鼠标。 (继承自 Control) |
| CausesValidation |
获取或设置一个值, ToolStrip 该值指示在收到焦点时是否对需要验证的任何控件执行验证。 (继承自 ToolStrip) |
| ClientRectangle |
获取表示控件工作区的矩形。 (继承自 Control) |
| ClientSize |
获取或设置控件工作区的高度和宽度。 (继承自 Control) |
| CompanyName |
获取包含控件的应用程序的公司或创建者的名称。 (继承自 Control) |
| Container |
IContainer获取包含 .Component (继承自 Component) |
| ContainsFocus |
获取一个值,该值指示控件或其子控件之一当前是否具有输入焦点。 (继承自 Control) |
| ContextMenu |
已过时.
获取或设置与控件关联的快捷菜单。 (继承自 Control) |
| ContextMenuStrip |
获取或设置 ContextMenuStrip 与此控件关联的值。 (继承自 Control) |
| Controls |
此属性与此类无关。 (继承自 ToolStrip) |
| CountItem |
获取或设置 ToolStripItem 显示关联 BindingSource项总数的项数。 |
| CountItemFormat |
获取或设置用于设置控件中显示的信息的格式的 CountItem 字符串。 |
| Created |
获取一个值,该值指示是否已创建控件。 (继承自 Control) |
| CreateParams |
获取创建控件句柄时所需的创建参数。 (继承自 ScrollableControl) |
| Cursor |
获取或设置鼠标指针位于鼠标指针上方 ToolStrip时显示的光标。 (继承自 ToolStrip) |
| DataBindings |
获取控件的数据绑定。 (继承自 Control) |
| DataContext |
获取或设置用于数据绑定的数据上下文。 这是一个环境属性。 (继承自 Control) |
| DefaultCursor |
获取或设置控件的默认游标。 (继承自 Control) |
| DefaultDock |
获取停靠位置 ToolStrip,指示哪些边框停靠到容器。 (继承自 ToolStrip) |
| DefaultDropDownDirection |
获取或设置一个值,该值表示控件相对于该ToolStrip控件显示的默认方向ToolStripDropDown。 (继承自 ToolStrip) |
| DefaultGripMargin |
获取大小控点与边缘 ToolStrip之间的默认间距(以像素为单位)。 (继承自 ToolStrip) |
| DefaultImeMode |
获取控件支持的默认输入法编辑器 (IME) 模式。 (继承自 Control) |
| DefaultMargin |
获取与 .之间的ToolStripContainer间距(以像素为单位ToolStrip)。 (继承自 ToolStrip) |
| DefaultMaximumSize |
获取指定为控件的默认最大大小的长度和高度(以像素为单位)。 (继承自 Control) |
| DefaultMinimumSize |
获取指定为控件的默认最小大小的长度和高度(以像素为单位)。 (继承自 Control) |
| DefaultPadding |
获取内容的内部间距(以像素为单位 ToolStrip)。 (继承自 ToolStrip) |
| DefaultShowItemToolTips |
获取一个值,该值指示默认情况下是否显示 ToolStrip 工具提示。 (继承自 ToolStrip) |
| DefaultSize |
获取默认大小 ToolStrip。 (继承自 ToolStrip) |
| DeleteItem |
获取或设置 ToolStripItem 与 Delete 功能关联的项。 |
| DesignMode |
获取一个值,该值指示当前是否 Component 处于设计模式。 (继承自 Component) |
| DeviceDpi |
获取当前显示控件的显示设备的 DPI 值。 (继承自 Control) |
| DisplayedItems |
获取当前显示在其中的 ToolStrip项的子集,包括自动添加到其中的 ToolStrip项。 (继承自 ToolStrip) |
| DisplayRectangle |
检索当前显示矩形。 (继承自 ToolStrip) |
| Disposing |
获取一个值,该值指示基 Control 类是否正在处理。 (继承自 Control) |
| Dock |
获取或设置哪些 ToolStrip 边框停靠在其父控件上,并确定如何 ToolStrip 调整其父级的大小。 (继承自 ToolStrip) |
| DockPadding |
获取控件的所有边缘的停靠填充设置。 (继承自 ScrollableControl) |
| DoubleBuffered |
获取或设置一个值,该值指示此控件是否应使用辅助缓冲区重新绘制其表面以减少或防止闪烁。 (继承自 Control) |
| Enabled |
获取或设置一个值,该值指示控件是否可以响应用户交互。 (继承自 Control) |
| Events |
获取附加到此 Component对象的事件处理程序的列表。 (继承自 Component) |
| Focused |
获取一个值,该值指示控件是否具有输入焦点。 (继承自 Control) |
| Font |
获取或设置用于在控件中显示文本的字体。 (继承自 ToolStrip) |
| FontHeight |
获取或设置控件字体的高度。 (继承自 Control) |
| ForeColor |
获取或设置 . ToolStrip的前景色。 (继承自 ToolStrip) |
| GripDisplayStyle |
获取移动手柄的方向 ToolStrip 。 (继承自 ToolStrip) |
| GripMargin |
获取或设置移动句柄周围的 ToolStrip 空间。 (继承自 ToolStrip) |
| GripRectangle |
获取移动句柄的 ToolStrip 边界。 (继承自 ToolStrip) |
| GripStyle |
获取或设置移动句柄是 ToolStrip 可见还是隐藏。 (继承自 ToolStrip) |
| Handle |
获取控件绑定到的窗口句柄。 (继承自 Control) |
| HasChildren |
此属性与此类无关。 (继承自 ToolStrip) |
| Height |
获取或设置控件的高度。 (继承自 Control) |
| HorizontalScroll |
此属性与此类无关。 (继承自 ToolStrip) |
| HScroll |
获取或设置一个值,该值指示水平滚动条是否可见。 (继承自 ScrollableControl) |
| ImageList |
获取或设置包含项上 ToolStrip 显示的图像的图像列表。 (继承自 ToolStrip) |
| ImageScalingSize |
获取或设置用于图像 ToolStrip的大小(以像素为单位)。 (继承自 ToolStrip) |
| ImeMode |
获取或设置控件的输入法编辑器 (IME) 模式。 (继承自 Control) |
| ImeModeBase |
获取或设置控件的 IME 模式。 (继承自 Control) |
| InvokeRequired |
获取一个值,该值指示调用方在对控件进行方法调用时是否必须调用调用方法,因为调用方与创建控件的线程不同。 (继承自 Control) |
| IsAccessible |
获取或设置一个值,该值指示控件是否对辅助功能应用程序可见。 (继承自 Control) |
| IsAncestorSiteInDesignMode |
指示此控件的上级位置之一是否位于 DesignMode 中。 此属性为只读。 (继承自 Control) |
| IsCurrentlyDragging |
获取一个值,该值指示用户当前 ToolStrip 是否正在将用户从一个移动到另一个 ToolStripContainer 用户。 (继承自 ToolStrip) |
| IsDisposed |
获取一个值,该值指示控件是否已释放。 (继承自 Control) |
| IsDropDown |
获取一个值,该值指示一个ToolStripToolStripDropDown控件是否为控件。 (继承自 ToolStrip) |
| IsHandleCreated |
获取一个值,该值指示控件是否具有与之关联的句柄。 (继承自 Control) |
| IsMirrored |
获取一个值,该值指示控件是否镜像。 (继承自 Control) |
| Items |
获取属于 . ToolStrip. 的所有项。 (继承自 ToolStrip) |
| LayoutEngine |
传递对布局引擎接口返回的缓存 LayoutEngine 的引用。 (继承自 ToolStrip) |
| LayoutSettings |
获取或设置布局方案特征。 (继承自 ToolStrip) |
| LayoutStyle |
获取或设置一个值,该值指示项集合的布局方式 ToolStrip 。 (继承自 ToolStrip) |
| Left |
获取或设置控件左边缘与其容器工作区的左边缘之间的距离(以像素为单位)。 (继承自 Control) |
| Location |
获取或设置控件左上角相对于其容器左上角的坐标。 (继承自 Control) |
| Margin |
获取或设置控件之间的间距。 (继承自 Control) |
| MaximumSize |
获取或设置可指定上限 GetPreferredSize(Size) 的大小。 (继承自 Control) |
| MaxItemSize |
获取最大高度和宽度(以像素 ToolStrip为单位)。 (继承自 ToolStrip) |
| MinimumSize |
获取或设置可以指定的下限 GetPreferredSize(Size) 的大小。 (继承自 Control) |
| MoveFirstItem |
获取或设置 ToolStripItem 与 Move First 功能关联的项。 |
| MoveLastItem |
获取或设置 ToolStripItem 与 “移动最后 一步”功能关联的项。 |
| MoveNextItem |
获取或设置 ToolStripItem 与 “下一步移动 ”功能关联的项。 |
| MovePreviousItem |
获取或设置 ToolStripItem 与 “上一移动” 功能关联的项。 |
| Name |
获取或设置控件的名称。 (继承自 Control) |
| Orientation |
获取 . 的方向 ToolStripPanel。 (继承自 ToolStrip) |
| OverflowButton |
获取 ToolStripItem 启用溢出的溢出按钮 ToolStrip 。 (继承自 ToolStrip) |
| Padding |
获取或设置控件中的填充。 (继承自 Control) |
| Parent |
获取或设置控件的父容器。 (继承自 Control) |
| PositionItem |
获取或设置 ToolStripItem 显示当前位置的 BindingSource。 |
| PreferredSize |
获取控件可以容纳到的矩形区域的大小。 (继承自 Control) |
| ProductName |
获取包含控件的程序集的产品名称。 (继承自 Control) |
| ProductVersion |
获取包含控件的程序集的版本。 (继承自 Control) |
| RecreatingHandle |
获取一个值,该值指示控件当前是否正在重新创建其句柄。 (继承自 Control) |
| Region |
获取或设置与控件关联的窗口区域。 (继承自 Control) |
| Renderer |
获取或设置 ToolStripRenderer 用于自定义对象的 ToolStrip外观。 (继承自 ToolStrip) |
| RenderMode |
获取或设置一个值,该值指示将应用于哪个 ToolStrip视觉样式。 (继承自 ToolStrip) |
| RenderRightToLeft |
已过时.
已过时.
此属性现已过时。 (继承自 Control) |
| ResizeRedraw |
获取或设置一个值,该值指示控件在调整大小时是否重新绘制自身。 (继承自 Control) |
| Right |
获取控件右边缘与其容器工作区的左边缘之间的距离(以像素为单位)。 (继承自 Control) |
| RightToLeft |
获取或设置一个值,该值指示控件的元素是否对齐以支持使用从右到左字体的区域设置。 (继承自 Control) |
| ScaleChildren |
获取一个值,该值确定子控件的缩放。 (继承自 Control) |
| ShowFocusCues |
获取一个值,该值指示控件是否应显示焦点矩形。 (继承自 Control) |
| ShowItemToolTips |
获取或设置一个值,该值指示是否在项上 ToolStrip 显示工具提示。 (继承自 ToolStrip) |
| ShowKeyboardCues |
获取一个值,该值指示用户界面是否处于适当的状态以显示或隐藏键盘加速器。 (继承自 Control) |
| Site |
获取或设置控件的站点。 (继承自 Control) |
| Size |
获取或设置控件的高度和宽度。 (继承自 Control) |
| Stretch |
获取或设置一个值,该值指示拉伸是否ToolStrip从头到尾。ToolStripContainer (继承自 ToolStrip) |
| TabIndex |
获取或设置控件在其容器中的 Tab 键顺序。 (继承自 Control) |
| TabStop |
获取或设置一个值,该值指示用户是否可以使用 TAB 键将焦点提供给项 ToolStrip 。 (继承自 ToolStrip) |
| Tag |
获取或设置包含有关控件的数据的对象。 (继承自 Control) |
| Text |
获取或设置与此控件关联的文本。 (继承自 Control) |
| TextDirection |
获取或设置在 . 上 ToolStrip绘制文本的方向。 (继承自 ToolStrip) |
| Top |
获取或设置控件上边缘与其容器工作区上边缘之间的距离(以像素为单位)。 (继承自 Control) |
| TopLevelControl |
获取其他 Windows 窗体控件未父控件的父控件。 通常,这是控件包含在的最外层 Form 。 (继承自 Control) |
| UseWaitCursor |
获取或设置一个值,该值指示是否对当前控件和所有子控件使用等待游标。 (继承自 Control) |
| VerticalScroll |
此属性与此类无关。 (继承自 ToolStrip) |
| Visible |
获取或设置一个值,该值指示是否显示控件及其所有子控件。 (继承自 Control) |
| VScroll |
获取或设置一个值,该值指示垂直滚动条是否可见。 (继承自 ScrollableControl) |
| Width |
获取或设置控件的宽度。 (继承自 Control) |
| WindowTarget |
此属性与此类无关。 (继承自 Control) |
方法
活动
显式接口实现
| 名称 | 说明 |
|---|---|
| IDropTarget.OnDragDrop(DragEventArgs) |
引发 DragDrop 事件。 (继承自 Control) |
| IDropTarget.OnDragEnter(DragEventArgs) |
引发 DragEnter 事件。 (继承自 Control) |
| IDropTarget.OnDragLeave(EventArgs) |
引发 DragLeave 事件。 (继承自 Control) |
| IDropTarget.OnDragOver(DragEventArgs) |
引发 DragOver 事件。 (继承自 Control) |