ערוך

שתף באמצעות


PropertyManager Class

Definition

Maintains a Binding between an object's property and a data-bound control property.

public ref class PropertyManager : System::Windows::Forms::BindingManagerBase
public class PropertyManager : System.Windows.Forms.BindingManagerBase
type PropertyManager = class
    inherit BindingManagerBase
Public Class PropertyManager
Inherits BindingManagerBase
Inheritance
PropertyManager

Remarks

The PropertyManager inherits from the BindingManagerBase, and it is used to maintain the current property of an object, rather than the property of a current object in a list. For this reason, trying to set the Position or Count property for a PropertyManager has no effect. Similarly, the AddNew and RemoveAt methods are not supported because there is no underlying list of data to add to or delete from. In addition, a call to IsBindingSuspended will always return false if the PropertyManager has a data source, regardless of whether SuspendBinding has been called.

Constructors

PropertyManager()

Initializes a new instance of the PropertyManager class.

Fields

onCurrentChangedHandler

Specifies the event handler for the CurrentChanged event.

(Inherited from BindingManagerBase)
onPositionChangedHandler

Specifies the event handler for the PositionChanged event.

(Inherited from BindingManagerBase)

Properties

Bindings

Gets the collection of bindings being managed.

(Inherited from BindingManagerBase)
Count

Gets the number of rows managed by the BindingManagerBase.

Current

Gets the object to which the data-bound property belongs.

IsBindingSuspended

Gets a value indicating whether binding is suspended.

(Inherited from BindingManagerBase)
Position

Gets the position in the underlying list that controls bound to this data source point to.

Methods

AddNew()

Throws a NotSupportedException in all cases.

CancelCurrentEdit()

Cancels the current edit.

EndCurrentEdit()

Ends the current edit.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetItemProperties()

Gets the collection of property descriptions for the binding.

GetItemProperties()

When overridden in a derived class, gets the collection of property descriptors for the binding.

(Inherited from BindingManagerBase)
GetItemProperties(ArrayList, ArrayList)

Gets the collection of property descriptors for the binding using the specified ArrayList.

(Inherited from BindingManagerBase)
GetItemProperties(Type, Int32, ArrayList, ArrayList)

Gets the list of properties of the items managed by this BindingManagerBase.

(Inherited from BindingManagerBase)
GetListName(ArrayList)

Gets the name of the list supplying the data for the binding.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnBindingComplete(BindingCompleteEventArgs)

Raises the BindingComplete event.

(Inherited from BindingManagerBase)
OnCurrentChanged(EventArgs)

Raises the CurrentChanged event.

OnCurrentItemChanged(EventArgs)

Raises the CurrentItemChanged event.

OnCurrentItemChanged(EventArgs)

Raises the CurrentItemChanged event.

(Inherited from BindingManagerBase)
OnDataError(Exception)

Raises the DataError event.

(Inherited from BindingManagerBase)
PullData()

Pulls data from the data-bound control into the data source, returning no information.

(Inherited from BindingManagerBase)
PushData()

Pushes data from the data source into the data-bound control, returning no information.

(Inherited from BindingManagerBase)
RemoveAt(Int32)

Throws a NotSupportedException in all cases.

ResumeBinding()

Resumes data binding.

SuspendBinding()

Suspends the data binding between a data source and a data-bound property.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
UpdateIsBinding()

Updates the current Binding between a data binding and a data-bound property.

Events

BindingComplete

Occurs at the completion of a data-binding operation.

(Inherited from BindingManagerBase)
CurrentChanged

Occurs when the currently bound item changes.

(Inherited from BindingManagerBase)
CurrentItemChanged

Occurs when the state of the currently bound item changes.

(Inherited from BindingManagerBase)
DataError

Occurs when an Exception is silently handled by the BindingManagerBase.

(Inherited from BindingManagerBase)
PositionChanged

Occurs after the value of the Position property has changed.

(Inherited from BindingManagerBase)

Applies to