共用方式為


PropertyManager 類別

定義

維持物件屬性與資料綁定控制屬性之間的 a Binding

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,用於維護物件的當前性質,而非清單中當前物件的性質。 因此,嘗試為 a 設定 PositionCount 屬性 PropertyManager 不會產生任何效果。 同樣地, AddNewRemoveAt 方法也不被支援,因為沒有底層的資料清單可供新增或刪除。 此外,IsBindingSuspended若 有PropertyManager資料來源,無論是否SuspendBinding被呼叫,呼叫都會回傳false

建構函式

名稱 Description
PropertyManager()

初始化 PropertyManager 類別的新執行個體。

欄位

名稱 Description
onCurrentChangedHandler

指定該事件的事件處理程序 CurrentChanged

(繼承來源 BindingManagerBase)
onPositionChangedHandler

指定該事件的事件處理程序 PositionChanged

(繼承來源 BindingManagerBase)

屬性

名稱 Description
Bindings

負責管理綁定的集合。

(繼承來源 BindingManagerBase)
Count

取得由 BindingManagerBase管理的列數。

Current

取得資料綁定屬性所屬的物件。

IsBindingSuspended

會得到一個值,表示綁定是否被暫停。

(繼承來源 BindingManagerBase)
Position

取得綁定到該資料來源點的控制清單中的位置。

方法

名稱 Description
AddNew()

在所有情況下都投擲 a NotSupportedException

CancelCurrentEdit()

取消目前的編輯。

EndCurrentEdit()

目前編輯結束。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetItemProperties()

取得裝訂時的物業描述集合。

GetItemProperties()

當在衍生類別中覆寫時,會得到綁定的屬性描述符集合。

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

利用指定的 ArrayList取得綁定的性質描述子集合。

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

取得由此 BindingManagerBase管理的項目屬性清單。

(繼承來源 BindingManagerBase)
GetListName(ArrayList)

取得提供綁定資料的清單名稱。

GetType()

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
OnBindingComplete(BindingCompleteEventArgs)

引發 BindingComplete 事件。

(繼承來源 BindingManagerBase)
OnCurrentChanged(EventArgs)

引發 CurrentChanged 事件。

OnCurrentItemChanged(EventArgs)

引發 CurrentItemChanged 事件。

OnDataError(Exception)

引發 DataError 事件。

(繼承來源 BindingManagerBase)
PullData()

將資料綁定控制項的資料拉入資料來源,但不回傳任何資訊。

(繼承來源 BindingManagerBase)
PushData()

將資料來源的資料推入資料綁定控制,但不會回傳任何資訊。

(繼承來源 BindingManagerBase)
RemoveAt(Int32)

在所有情況下都投擲 a NotSupportedException

ResumeBinding()

恢復資料綁定。

SuspendBinding()

暫停資料來源與資料綁定屬性之間的資料綁定。

ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)
UpdateIsBinding()

更新資料綁定與資料綁定屬性之間的電流 Binding

事件

名稱 Description
BindingComplete

發生在資料綁定操作完成時。

(繼承來源 BindingManagerBase)
CurrentChanged

當目前綁定的物品改變時會發生。

(繼承來源 BindingManagerBase)
CurrentItemChanged

當當前綁定項目的狀態改變時,會發生這種情況。

(繼承來源 BindingManagerBase)
DataError

當 a Exception 被 靜默處理 BindingManagerBase時會發生。

(繼承來源 BindingManagerBase)
PositionChanged

發生在房產價值 Position 變動之後。

(繼承來源 BindingManagerBase)

適用於