C# Class SourceGrid.RangeRegion

RangeRegion is a collection of range that are never overlying each other.
Afficher le fichier Open project: zhuangyy/Motion Class Usage Examples

Méthodes publiques

Méthode Description
Add ( Position pCell ) : bool

Add the specified cell and add the cell to the collection.

Add ( Range pRange ) : bool

Add the specified Range of cells

Add ( RangeRegion pRange ) : bool

Add the specified ranges of cells

Clear ( ) : void

Remove all the cells

Clear ( Range pRangeToLeave ) : void

Remove all the cells excluse the specified range

Contains ( Position p_Cell ) : bool

Indicates if the specified cell is selected

Contains ( Range p_Range ) : bool

Indicates if the specified range of cells is selected

Contains ( RangeRegion p_Range ) : bool

Indicates if the specified range of cells is selected

ContainsColumn ( int p_Column ) : bool

Indicates if the specified column is selected

ContainsRow ( int p_Row ) : bool

Indicates if the specified row is selected

Exclude ( Range pRange ) : RangeRegion

Returns the cells of the current range that don't intersect with the specified range

Exclude ( RangeRegion pRange ) : RangeRegion
GetCellsPositions ( ) : PositionCollection

Returns a Collection of cells that represents the current class

GetColumnsIndex ( ) : int[]

Returns all the selected columns index

GetRanges ( ) : RangeCollection

Returns a Collection of range that represents the current class

GetRowsIndex ( ) : int[]

Returns all the selected rows index

Intersect ( Range p_Range ) : RangeRegion

Returns a non contiguous range of cells of the intersection between the current range and the specified range.

Intersect ( RangeRegion pRange ) : RangeRegion
IntersectsWith ( Range p_Range ) : bool

Indicates if the specified range of cells is selected

IsEmpty ( ) : bool
OnAddedRange ( RangeRegionEventArgs e ) : void
OnAddingRange ( RangeRegionCancelEventArgs e ) : void
OnChanged ( EventArgs e ) : void
OnRemovedRange ( RangeRegionEventArgs e ) : void
OnRemovingRange ( RangeRegionCancelEventArgs e ) : void
RangeRegion ( ) : System
RangeRegion ( Range pRange ) : System
RangeRegion ( RangeRegion other ) : System

Copy constructor

Remove ( Position pCell ) : bool

Remove from the collection the specified cell

Remove ( Range pRange ) : bool

Remove from the collection the specified range of cells

Remove ( RangeRegion pRange ) : bool

Remove the specified ranges of cells

ToString ( ) : string

Méthodes protégées

Méthode Description
ResetRange ( ) : void

Reset the object to its original state. It is similar to the Clear method but doesn't call any events when removeing the saved positions, usually used when refreshing the cells with new data. To simply clear the object use the Clear method, only use this method when you want to force a reset of the object without calling additional methods.

Private Methods

Méthode Description
InternalAdd ( RangeRegion pRange ) : bool

Prende un range che è già stato filtrato con solo le celle non presenti nell'attuale range

InternalRemove ( RangeRegion pRange ) : bool

Prende un range che è già stato filtrato con solo le celle presenti nell'attuale range

Method Details

Add() public méthode

Add the specified cell and add the cell to the collection.
public Add ( Position pCell ) : bool
pCell Position
Résultat bool

Add() public méthode

Add the specified Range of cells
public Add ( Range pRange ) : bool
pRange Range
Résultat bool

Add() public méthode

Add the specified ranges of cells
public Add ( RangeRegion pRange ) : bool
pRange RangeRegion
Résultat bool

Clear() public méthode

Remove all the cells
public Clear ( ) : void
Résultat void

Clear() public méthode

Remove all the cells excluse the specified range
public Clear ( Range pRangeToLeave ) : void
pRangeToLeave Range
Résultat void

Contains() public méthode

Indicates if the specified cell is selected
public Contains ( Position p_Cell ) : bool
p_Cell Position
Résultat bool

Contains() public méthode

Indicates if the specified range of cells is selected
public Contains ( Range p_Range ) : bool
p_Range Range
Résultat bool

Contains() public méthode

Indicates if the specified range of cells is selected
public Contains ( RangeRegion p_Range ) : bool
p_Range RangeRegion
Résultat bool

ContainsColumn() public méthode

Indicates if the specified column is selected
public ContainsColumn ( int p_Column ) : bool
p_Column int
Résultat bool

ContainsRow() public méthode

Indicates if the specified row is selected
public ContainsRow ( int p_Row ) : bool
p_Row int
Résultat bool

Exclude() public méthode

Returns the cells of the current range that don't intersect with the specified range
public Exclude ( Range pRange ) : RangeRegion
pRange Range
Résultat RangeRegion

Exclude() public méthode

public Exclude ( RangeRegion pRange ) : RangeRegion
pRange RangeRegion
Résultat RangeRegion

GetCellsPositions() public méthode

Returns a Collection of cells that represents the current class
public GetCellsPositions ( ) : PositionCollection
Résultat PositionCollection

GetColumnsIndex() public méthode

Returns all the selected columns index
public GetColumnsIndex ( ) : int[]
Résultat int[]

GetRanges() public méthode

Returns a Collection of range that represents the current class
public GetRanges ( ) : RangeCollection
Résultat RangeCollection

GetRowsIndex() public méthode

Returns all the selected rows index
public GetRowsIndex ( ) : int[]
Résultat int[]

Intersect() public méthode

Returns a non contiguous range of cells of the intersection between the current range and the specified range.
public Intersect ( Range p_Range ) : RangeRegion
p_Range Range
Résultat RangeRegion

Intersect() public méthode

public Intersect ( RangeRegion pRange ) : RangeRegion
pRange RangeRegion
Résultat RangeRegion

IntersectsWith() public méthode

Indicates if the specified range of cells is selected
public IntersectsWith ( Range p_Range ) : bool
p_Range Range
Résultat bool

IsEmpty() public méthode

public IsEmpty ( ) : bool
Résultat bool

OnAddedRange() public méthode

public OnAddedRange ( RangeRegionEventArgs e ) : void
e RangeRegionEventArgs
Résultat void

OnAddingRange() public méthode

public OnAddingRange ( RangeRegionCancelEventArgs e ) : void
e RangeRegionCancelEventArgs
Résultat void

OnChanged() public méthode

public OnChanged ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnRemovedRange() public méthode

public OnRemovedRange ( RangeRegionEventArgs e ) : void
e RangeRegionEventArgs
Résultat void

OnRemovingRange() public méthode

public OnRemovingRange ( RangeRegionCancelEventArgs e ) : void
e RangeRegionCancelEventArgs
Résultat void

RangeRegion() public méthode

public RangeRegion ( ) : System
Résultat System

RangeRegion() public méthode

public RangeRegion ( Range pRange ) : System
pRange Range
Résultat System

RangeRegion() public méthode

Copy constructor
public RangeRegion ( RangeRegion other ) : System
other RangeRegion
Résultat System

Remove() public méthode

Remove from the collection the specified cell
public Remove ( Position pCell ) : bool
pCell Position
Résultat bool

Remove() public méthode

Remove from the collection the specified range of cells
public Remove ( Range pRange ) : bool
pRange Range
Résultat bool

Remove() public méthode

Remove the specified ranges of cells
public Remove ( RangeRegion pRange ) : bool
pRange RangeRegion
Résultat bool

ResetRange() protected méthode

Reset the object to its original state. It is similar to the Clear method but doesn't call any events when removeing the saved positions, usually used when refreshing the cells with new data. To simply clear the object use the Clear method, only use this method when you want to force a reset of the object without calling additional methods.
protected ResetRange ( ) : void
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string