PropertyManager 類別

定義

維護物件屬性和資料繫結控制項屬性之間的 BindingMaintains 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
繼承
PropertyManager

備註

PropertyManager 繼承BindingManagerBase自, 而且會用來維護物件的目前屬性, 而不是清單中目前物件的屬性。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. 基於這個理由, 嘗試設定Position的或Count屬性PropertyManager不會有任何作用。For this reason, trying to set the Position or Count property for a PropertyManager has no effect. 同樣地, AddNewRemoveAt支援和方法, 因為沒有要在其中新增或刪除的基礎資料清單。Similarly, the AddNew and RemoveAt methods are not supported because there is no underlying list of data to add to or delete from. IsBindingSuspended此外, false如果SuspendBinding有資料來源, 則的呼叫一律會傳回, 而不論是否已呼叫。 PropertyManagerIn addition, a call to IsBindingSuspended will always return false if the PropertyManager has a data source, regardless of whether SuspendBinding has been called.

建構函式

PropertyManager()

初始化 PropertyManager 類別的新執行個體。Initializes a new instance of the PropertyManager class.

欄位

onCurrentChangedHandler

指定 CurrentChanged 事件的事件處理常式。Specifies the event handler for the CurrentChanged event.

(繼承來源 BindingManagerBase)
onPositionChangedHandler

指定 PositionChanged 事件的事件處理常式。Specifies the event handler for the PositionChanged event.

(繼承來源 BindingManagerBase)

屬性

Bindings

取得受管理的繫結集合。Gets the collection of bindings being managed.

(繼承來源 BindingManagerBase)
Count

取得 BindingManagerBase 管理的資料列數目。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.

(繼承來源 BindingManagerBase)
Position

取得基礎清單中的位置,其為繫結至此資料來源之控制項所指向的位置。Gets the position in the underlying list that controls bound to this data source point to.

方法

AddNew()

在所有情況下都擲回 NotSupportedExceptionThrows 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.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetItemProperties()

取得繫結之屬性描述的集合。Gets the collection of property descriptions for the binding.

GetItemProperties(ArrayList, ArrayList)

使用指定的 ArrayList,取得繫結的屬性描述項集合。Gets the collection of property descriptors for the binding using the specified ArrayList.

(繼承來源 BindingManagerBase)
GetItemProperties(Type, Int32, ArrayList, ArrayList)

取得由這個 BindingManagerBase 所管理項目的屬性清單。Gets the list of properties of the items managed by this BindingManagerBase.

(繼承來源 BindingManagerBase)
GetListName(ArrayList)

取得為繫結提供資料的清單名稱。Gets the name of the list supplying the data for the binding.

GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
OnBindingComplete(BindingCompleteEventArgs)

引發 BindingComplete 事件。Raises the BindingComplete event.

(繼承來源 BindingManagerBase)
OnCurrentChanged(EventArgs)

引發 CurrentChanged 事件。Raises the CurrentChanged event.

OnCurrentItemChanged(EventArgs)

引發 CurrentItemChanged 事件。Raises the CurrentItemChanged event.

OnDataError(Exception)

引發 DataError 事件。Raises the DataError event.

(繼承來源 BindingManagerBase)
PullData()

從資料繫結的控制項取出資料送入資料來源,而不需傳回任何資訊。Pulls data from the data-bound control into the data source, returning no information.

(繼承來源 BindingManagerBase)
PushData()

將資料來源中的資料送入資料繫結的控制項,而不需傳回任何資訊。Pushes data from the data source into the data-bound control, returning no information.

(繼承來源 BindingManagerBase)
RemoveAt(Int32)

在所有情況下都擲回 NotSupportedExceptionThrows 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.

(繼承來源 Object)
UpdateIsBinding()

更新資料繫結和資料繫結屬性之間的目前 BindingUpdates the current Binding between a data binding and a data-bound property.

事件

BindingComplete

發生於資料繫結作業完成時。Occurs at the completion of a data-binding operation.

(繼承來源 BindingManagerBase)
CurrentChanged

發生於目前繫結的項目變更時。Occurs when the currently bound item changes.

(繼承來源 BindingManagerBase)
CurrentItemChanged

發生於目前繫結的項目之狀態變更時。Occurs when the state of the currently bound item changes.

(繼承來源 BindingManagerBase)
DataError

Exception 以無訊息模式處理 BindingManagerBase 時發生。Occurs when an Exception is silently handled by the BindingManagerBase.

(繼承來源 BindingManagerBase)
PositionChanged

發生於 Position 屬性的值已變更後。Occurs after the value of the Position property has changed.

(繼承來源 BindingManagerBase)

適用於