Name
BindableAttribute
Synopsis
This attribute class is applied to properties to indicate to the designer that you would normally expect to use them in a data-binding scenario.
While you can use the data-binding framework to bind to any property, this attribute allows you to hint to the designer that this property should be listed in any preferred set of bound properties.
You can use the Bindable
property to determine the
state of the attribute, but you must compare to the static
BindableSupport.Yes
or
BindableSupport.No
values for equality.
public sealed class BindableAttribute : Attribute { // Public Constructors public BindableAttribute(BindableSupport flags); public BindableAttribute(bool bindable); // Public Static Fields public static readonly BindableAttribute Default; // =System.ComponentModel.BindableAttribute public static readonly BindableAttribute No; // =System.ComponentModel.BindableAttribute public static readonly BindableAttribute Yes; // =System.ComponentModel.BindableAttribute // Public Instance Properties public bool Bindable{get; } // Public Instance Methods public override bool Equals(object obj); // overrides Attribute public override int GetHashCode(); // overrides Attribute public override bool IsDefaultAttribute(); // overrides Attribute }
Hierarchy
System.Object
→ System.Attribute → BindableAttribute
Valid On
All
Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.