BindingSource.Current Property

 

Gets the current item in the list.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

[<BrowsableAttribute(false)>]
member Current : Object with get

Property Value

Type: System.Object

An Object that represents the current item in the underlying list represented by the List property, or null if the list has no items.

Use the Current property to access the current item, but use the List property to get the entire list. To determine the type of the current object, use the GetType, or ToString methods.

To change the current item, set the Position property to a new integral value, or use one of the navigation methods such as MoveNext.

The following code example demonstrates the Current property. To run this example, paste the code into a form and call the PopulateBindingSourceWithFonts method from the form's Load event handling method.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: