Binding.IsBinding Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets a value indicating whether the binding is active.

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

Public ReadOnly Property IsBinding As Boolean

Property Value

Type: System.Boolean

true if the binding is active; otherwise, false.

A binding is active when it meets these conditions:

The following code example prints the PropertyName and IsBinding value for each Binding on a form.

Private Sub PrintBindingIsBinding
    Dim c As Control
    Dim b As Binding
    For Each c In Me.Controls
        For Each b in c.DataBindings
            Console.WriteLine (ControlChars.CrLf & c.ToString)
            Console.WriteLine (b.PropertyName & " IsBinding: " & _
                b.IsBinding)
        Next
    Next
End Sub

.NET Framework
Available since 1.1
Return to top
Show: