C# 클래스 SourceGrid.Range

파일 보기 프로젝트 열기: zhuangyy/Motion 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Empty Range

공개 메소드들

메소드 설명
Contains ( Position p_Position ) : bool

Returns true if the specified cell position is present in the current range.

Contains ( Range p_Range ) : bool

Returns true if the specified range is present in the current range.

ContainsColumn ( int p_Col ) : bool

Returns true if the specified column is present in the current range.

ContainsRow ( int p_Row ) : bool

Returns true if the specified row is present in the current range.

Equals ( Range p_Range ) : bool

Equals ( object obj ) : bool

Exclude ( Range range ) : RangeRegion

Return all the cells that don't intersect with the specified cells. (Remove the specified cells from the current cells ad returns the remaining cells)

GetBounds ( Range p_Range1, Range p_Range2 ) : Range

Returns a range with the smaller Start and the bigger End. The Union of the 2 Range. If one of the range is empty then the return is the other range.

GetCellsPositions ( ) : PositionCollection

GetHashCode ( ) : int

Intersect ( Range p_Range ) : Range

Returns the intersection between the 2 Range. If one of the range is empty then the return is empty.

Intersect ( Range p_Range1, Range p_Range2 ) : Range

Returns the intersection between the 2 Range. If one of the range is empty then the return is empty.

IntersectsWith ( Range p_Range ) : bool

Returns true if the specified range intersects (one or more cells) with the current range. If one of the range is empty then the return is false.

IntersectsWith ( Range p_Range1, Range p_Range2 ) : bool

Returns true if the specified range intersects (one or more cells) with the current range. If one of the range is empty then the return is false.

IsEmpty ( ) : bool

Determines if the current range is empty

MoveTo ( Position p_StartPosition ) : void

Move the current range to the specified position, leaving the current ColumnsCount and RowsCount

Range ( Position p_SinglePosition ) : System

Construct a Range of a single cell

Range ( Position p_Start, Position p_End ) : System

Constructor

Range ( int p_StartRow, int p_StartCol, int p_EndRow, int p_EndCol ) : System

Constructor

ToString ( ) : string

Union ( Range p_Range1, Range p_Range2 ) : RangeRegion

Returns a range with the smaller Start and the bigger End. The Union of the 2 Range. If one of the range is empty then the return is the other range.

operator ( ) : bool

비공개 메소드들

메소드 설명
Normalize ( ) : void

Check and fix the range to always have Start smaller than End

Range ( ) : System
Range ( Position p_Start, Position p_End, bool p_bCheck ) : System

메소드 상세

Contains() 공개 메소드

Returns true if the specified cell position is present in the current range.
public Contains ( Position p_Position ) : bool
p_Position Position
리턴 bool

Contains() 공개 메소드

Returns true if the specified range is present in the current range.
public Contains ( Range p_Range ) : bool
p_Range Range
리턴 bool

ContainsColumn() 공개 메소드

Returns true if the specified column is present in the current range.
public ContainsColumn ( int p_Col ) : bool
p_Col int
리턴 bool

ContainsRow() 공개 메소드

Returns true if the specified row is present in the current range.
public ContainsRow ( int p_Row ) : bool
p_Row int
리턴 bool

Equals() 공개 메소드

public Equals ( Range p_Range ) : bool
p_Range Range
리턴 bool

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

Exclude() 공개 메소드

Return all the cells that don't intersect with the specified cells. (Remove the specified cells from the current cells ad returns the remaining cells)
public Exclude ( Range range ) : RangeRegion
range Range
리턴 RangeRegion

GetBounds() 공개 정적인 메소드

Returns a range with the smaller Start and the bigger End. The Union of the 2 Range. If one of the range is empty then the return is the other range.
public static GetBounds ( Range p_Range1, Range p_Range2 ) : Range
p_Range1 Range
p_Range2 Range
리턴 Range

GetCellsPositions() 공개 메소드

public GetCellsPositions ( ) : PositionCollection
리턴 PositionCollection

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

Intersect() 공개 메소드

Returns the intersection between the 2 Range. If one of the range is empty then the return is empty.
public Intersect ( Range p_Range ) : Range
p_Range Range
리턴 Range

Intersect() 공개 정적인 메소드

Returns the intersection between the 2 Range. If one of the range is empty then the return is empty.
public static Intersect ( Range p_Range1, Range p_Range2 ) : Range
p_Range1 Range
p_Range2 Range
리턴 Range

IntersectsWith() 공개 메소드

Returns true if the specified range intersects (one or more cells) with the current range. If one of the range is empty then the return is false.
public IntersectsWith ( Range p_Range ) : bool
p_Range Range
리턴 bool

IntersectsWith() 공개 정적인 메소드

Returns true if the specified range intersects (one or more cells) with the current range. If one of the range is empty then the return is false.
public static IntersectsWith ( Range p_Range1, Range p_Range2 ) : bool
p_Range1 Range
p_Range2 Range
리턴 bool

IsEmpty() 공개 메소드

Determines if the current range is empty
public IsEmpty ( ) : bool
리턴 bool

MoveTo() 공개 메소드

Move the current range to the specified position, leaving the current ColumnsCount and RowsCount
public MoveTo ( Position p_StartPosition ) : void
p_StartPosition Position
리턴 void

Range() 공개 메소드

Construct a Range of a single cell
public Range ( Position p_SinglePosition ) : System
p_SinglePosition Position
리턴 System

Range() 공개 메소드

Constructor
public Range ( Position p_Start, Position p_End ) : System
p_Start Position
p_End Position
리턴 System

Range() 공개 메소드

Constructor
public Range ( int p_StartRow, int p_StartCol, int p_EndRow, int p_EndCol ) : System
p_StartRow int
p_StartCol int
p_EndRow int
p_EndCol int
리턴 System

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

Union() 공개 정적인 메소드

Returns a range with the smaller Start and the bigger End. The Union of the 2 Range. If one of the range is empty then the return is the other range.
public static Union ( Range p_Range1, Range p_Range2 ) : RangeRegion
p_Range1 Range
p_Range2 Range
리턴 RangeRegion

operator() 공개 정적인 메소드

public static operator ( ) : bool
리턴 bool

프로퍼티 상세

Empty 공개적으로 정적으로 프로퍼티

Represents an empty range
public static Range,SourceGrid Empty
리턴 Range