C# 클래스 SourceGrid.RangeRegion

RangeRegion is a collection of range that are never overlying each other.
파일 보기 프로젝트 열기: zhuangyy/Motion 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

Add() 공개 메소드

Add the specified cell and add the cell to the collection.
public Add ( Position pCell ) : bool
pCell Position
리턴 bool

Add() 공개 메소드

Add the specified Range of cells
public Add ( Range pRange ) : bool
pRange Range
리턴 bool

Add() 공개 메소드

Add the specified ranges of cells
public Add ( RangeRegion pRange ) : bool
pRange RangeRegion
리턴 bool

Clear() 공개 메소드

Remove all the cells
public Clear ( ) : void
리턴 void

Clear() 공개 메소드

Remove all the cells excluse the specified range
public Clear ( Range pRangeToLeave ) : void
pRangeToLeave Range
리턴 void

Contains() 공개 메소드

Indicates if the specified cell is selected
public Contains ( Position p_Cell ) : bool
p_Cell Position
리턴 bool

Contains() 공개 메소드

Indicates if the specified range of cells is selected
public Contains ( Range p_Range ) : bool
p_Range Range
리턴 bool

Contains() 공개 메소드

Indicates if the specified range of cells is selected
public Contains ( RangeRegion p_Range ) : bool
p_Range RangeRegion
리턴 bool

ContainsColumn() 공개 메소드

Indicates if the specified column is selected
public ContainsColumn ( int p_Column ) : bool
p_Column int
리턴 bool

ContainsRow() 공개 메소드

Indicates if the specified row is selected
public ContainsRow ( int p_Row ) : bool
p_Row int
리턴 bool

Exclude() 공개 메소드

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

Exclude() 공개 메소드

public Exclude ( RangeRegion pRange ) : RangeRegion
pRange RangeRegion
리턴 RangeRegion

GetCellsPositions() 공개 메소드

Returns a Collection of cells that represents the current class
public GetCellsPositions ( ) : PositionCollection
리턴 PositionCollection

GetColumnsIndex() 공개 메소드

Returns all the selected columns index
public GetColumnsIndex ( ) : int[]
리턴 int[]

GetRanges() 공개 메소드

Returns a Collection of range that represents the current class
public GetRanges ( ) : RangeCollection
리턴 RangeCollection

GetRowsIndex() 공개 메소드

Returns all the selected rows index
public GetRowsIndex ( ) : int[]
리턴 int[]

Intersect() 공개 메소드

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
리턴 RangeRegion

Intersect() 공개 메소드

public Intersect ( RangeRegion pRange ) : RangeRegion
pRange RangeRegion
리턴 RangeRegion

IntersectsWith() 공개 메소드

Indicates if the specified range of cells is selected
public IntersectsWith ( Range p_Range ) : bool
p_Range Range
리턴 bool

IsEmpty() 공개 메소드

public IsEmpty ( ) : bool
리턴 bool

OnAddedRange() 공개 메소드

public OnAddedRange ( RangeRegionEventArgs e ) : void
e RangeRegionEventArgs
리턴 void

OnAddingRange() 공개 메소드

public OnAddingRange ( RangeRegionCancelEventArgs e ) : void
e RangeRegionCancelEventArgs
리턴 void

OnChanged() 공개 메소드

public OnChanged ( EventArgs e ) : void
e System.EventArgs
리턴 void

OnRemovedRange() 공개 메소드

public OnRemovedRange ( RangeRegionEventArgs e ) : void
e RangeRegionEventArgs
리턴 void

OnRemovingRange() 공개 메소드

public OnRemovingRange ( RangeRegionCancelEventArgs e ) : void
e RangeRegionCancelEventArgs
리턴 void

RangeRegion() 공개 메소드

public RangeRegion ( ) : System
리턴 System

RangeRegion() 공개 메소드

public RangeRegion ( Range pRange ) : System
pRange Range
리턴 System

RangeRegion() 공개 메소드

Copy constructor
public RangeRegion ( RangeRegion other ) : System
other RangeRegion
리턴 System

Remove() 공개 메소드

Remove from the collection the specified cell
public Remove ( Position pCell ) : bool
pCell Position
리턴 bool

Remove() 공개 메소드

Remove from the collection the specified range of cells
public Remove ( Range pRange ) : bool
pRange Range
리턴 bool

Remove() 공개 메소드

Remove the specified ranges of cells
public Remove ( RangeRegion pRange ) : bool
pRange RangeRegion
리턴 bool

ResetRange() 보호된 메소드

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
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string