ControlBindingsCollection.Clear Method ()


Clears the collection of any bindings.

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

public void Clear()

The CollectionChanged event occurs when the collection is cleared.

The following code example uses the Clear method to clear the ControlBindingsCollection for each control on a form.

private void ClearAllBindings()
   foreach(Control c in groupBox1.Controls)

.NET Framework
Available since 1.1
Return to top