Szerkesztés

Megosztás a következőn keresztül:


BindingNavigator Constructors

Definition

Initializes a new instance of the BindingNavigator class.

Overloads

BindingNavigator()

Initializes a new instance of the BindingNavigator class.

BindingNavigator(Boolean)

Initializes a new instance of the BindingNavigator class, indicating whether to display the standard navigation user interface (UI).

BindingNavigator(IContainer)

Initializes a new instance of the BindingNavigator class and adds this new instance to the specified container.

BindingNavigator(BindingSource)

Initializes a new instance of the BindingNavigator class with the specified BindingSource as the data source.

BindingNavigator()

Initializes a new instance of the BindingNavigator class.

public:
 BindingNavigator();
public BindingNavigator ();
Public Sub New ()

Remarks

The parameterless constructor sets the BindingSource property to null. This constructor is equivalent to calling the BindingNavigator(Boolean) constructor with a parameter value of false. You can add the standard items by making a separate call to AddStandardItems.

See also

Applies to

BindingNavigator(Boolean)

Initializes a new instance of the BindingNavigator class, indicating whether to display the standard navigation user interface (UI).

public:
 BindingNavigator(bool addStandardItems);
public BindingNavigator (bool addStandardItems);
new System.Windows.Forms.BindingNavigator : bool -> System.Windows.Forms.BindingNavigator
Public Sub New (addStandardItems As Boolean)

Parameters

addStandardItems
Boolean

true to show the standard navigational UI; otherwise, false.

Remarks

This constructor sets the BindingSource property to null. If AddStandardItems is false, AddNewItem, MoveFirstItem, MoveLastItem, MoveNextItem, MovePreviousItem, DeleteItem, CountItem and PositionItem will also be null.

See also

Applies to

BindingNavigator(IContainer)

Initializes a new instance of the BindingNavigator class and adds this new instance to the specified container.

public:
 BindingNavigator(System::ComponentModel::IContainer ^ container);
public BindingNavigator (System.ComponentModel.IContainer container);
new System.Windows.Forms.BindingNavigator : System.ComponentModel.IContainer -> System.Windows.Forms.BindingNavigator
Public Sub New (container As IContainer)

Parameters

container
IContainer

The IContainer to add the new BindingNavigator control to.

Remarks

This constructor is provided as a convenience, combining the steps of creating a new BindingNavigator control and adding it to a parent IContainer. Like the parameterless constructor, it sets the BindingSource property to null and does not show the standard user interface.

See also

Applies to

BindingNavigator(BindingSource)

Initializes a new instance of the BindingNavigator class with the specified BindingSource as the data source.

public:
 BindingNavigator(System::Windows::Forms::BindingSource ^ bindingSource);
public BindingNavigator (System.Windows.Forms.BindingSource bindingSource);
public BindingNavigator (System.Windows.Forms.BindingSource? bindingSource);
new System.Windows.Forms.BindingNavigator : System.Windows.Forms.BindingSource -> System.Windows.Forms.BindingNavigator
Public Sub New (bindingSource As BindingSource)

Parameters

bindingSource
BindingSource

The BindingSource used as a data source.

Remarks

This constructor uses the BindingSource parameter to initialize the BindingSource property. It also adds the standard set of navigational buttons and sets their corresponding properties, such as CountItem and MoveNextItem.

See also

Applies to