C# Class FarsiLibrary.Win.Helpers.CollectionWithEvents

Extend collection base class by generating change events.
Inheritance: System.Collections.CollectionBase
Afficher le fichier Open project: DanWBR/dwsim3

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
CollectionWithEvents ( ) : System.Collections

Initializes DrawTab new instance of the CollectionWithEvents class.

ResumeEvents ( ) : void

Safe to resume change events.

SuspendEvents ( ) : void

Do not generate change events until resumed.

Méthodes protégées

Méthode Description
IndexOf ( object value ) : int

Returns the index of the first occurrence of DrawTab value.

OnClear ( ) : void

Raises the Clearing event when not suspended.

OnClearComplete ( ) : void

Raises the Cleared event when not suspended.

OnInsert ( int index, object value ) : void

Raises the Inserting event when not suspended.

OnInsertComplete ( int index, object value ) : void

Raises the Inserted event when not suspended.

OnRemove ( int index, object value ) : void

Raises the Removing event when not suspended.

OnRemoveComplete ( int index, object value ) : void

Raises the Removed event when not suspended.

Method Details

CollectionWithEvents() public méthode

Initializes DrawTab new instance of the CollectionWithEvents class.
public CollectionWithEvents ( ) : System.Collections
Résultat System.Collections

IndexOf() protected méthode

Returns the index of the first occurrence of DrawTab value.
protected IndexOf ( object value ) : int
value object The object to locate.
Résultat int

OnClear() protected méthode

Raises the Clearing event when not suspended.
protected OnClear ( ) : void
Résultat void

OnClearComplete() protected méthode

Raises the Cleared event when not suspended.
protected OnClearComplete ( ) : void
Résultat void

OnInsert() protected méthode

Raises the Inserting event when not suspended.
protected OnInsert ( int index, object value ) : void
index int Index of object being inserted.
value object The object that is being inserted.
Résultat void

OnInsertComplete() protected méthode

Raises the Inserted event when not suspended.
protected OnInsertComplete ( int index, object value ) : void
index int Index of inserted object.
value object The object that has been inserted.
Résultat void

OnRemove() protected méthode

Raises the Removing event when not suspended.
protected OnRemove ( int index, object value ) : void
index int Index of object being removed.
value object The object that is being removed.
Résultat void

OnRemoveComplete() protected méthode

Raises the Removed event when not suspended.
protected OnRemoveComplete ( int index, object value ) : void
index int Index of removed object.
value object The object that has been removed.
Résultat void

ResumeEvents() public méthode

Safe to resume change events.
public ResumeEvents ( ) : void
Résultat void

SuspendEvents() public méthode

Do not generate change events until resumed.
public SuspendEvents ( ) : void
Résultat void