Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)]
public:
property Object^ Current {
	Object^ get ();
}

Property Value

Type: System::Object
An Object that represents the current item in the underlying list represented by the List property, or nullptr 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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft