GridCellRange Class Reference

Inherits from NSObject
Declared in GridCellRange.h

Overview

Class GridCellRange.

– init

Initialize an object for GridCellRange.

- (id _Nonnull)init

Return Value

an object for GridCellRange.

Discussion

Initialize an object for GridCellRange.

Declared In

GridCellRange.h

– initWithRow:col:

Initialize an object for GridCellRange.

- (id _Nonnull)initWithRow:(int)row col:(int)col

Parameters

row

the row.

col

the column.

Return Value

an object for GridCellRange.

Discussion

Initialize an object for GridCellRange.

Declared In

GridCellRange.h

– initWithRow:col:row2:col2:

Initialize an object for GridCellRange.

- (id _Nonnull)initWithRow:(int)row col:(int)col row2:(int)row2 col2:(int)col2

Parameters

row

the row.

col

the column.

row2

the row2.

col2

the column2.

Return Value

an object for GridCellRange.

Discussion

Initialize an object for GridCellRange.

Declared In

GridCellRange.h

– clone

Clone an object for GridCellRange.

- (GridCellRange *_Nonnull)clone

Return Value

an object for GridCellRange.

Discussion

Clone an object for GridCellRange.

Declared In

GridCellRange.h

– isEqual:

Judge whether the two objects of GridCellRange is equal.

- (BOOL)isEqual:(GridCellRange *_Nonnull)other

Parameters

other

the other object of GridCellRange.

Return Value

a boolean value.

Discussion

Judge whether the two objects of GridCellRange is equal.

Declared In

GridCellRange.h

– intersects:

Judge whether the two objects are intersect.

- (BOOL)intersects:(GridCellRange *_Nonnull)other

Parameters

other

the other object of GridCellRange.

Return Value

a boolean value.

Discussion

Judge whether the two objects are intersect.

Declared In

GridCellRange.h

  row

Gets or sets the index of the first row in this range.

@property int row

Discussion

Gets or sets the index of the first row in this range.

Declared In

GridCellRange.h

  col

Gets or sets the index of the first column in this range.

@property int col

Discussion

Gets or sets the index of the first column in this range.

Declared In

GridCellRange.h

  row2

Gets or sets the index of the second row in this range.

@property int row2

Discussion

Gets or sets the index of the second row in this range.

Declared In

GridCellRange.h

  col2

Gets or sets the index of the second column in this range.

@property int col2

Discussion

Gets or sets the index of the second column in this range.

Declared In

GridCellRange.h

  rowSpan

Gets the number of rows in this range.

@property (readonly) int rowSpan

Discussion

Gets the number of rows in this range.

Declared In

GridCellRange.h

  columnSpan

Gets the number of columns in this range.

@property (readonly) int columnSpan

Discussion

Gets the number of columns in this range.

Declared In

GridCellRange.h

  topRow

Gets the index of the top row in this range.

@property (readonly) int topRow

Discussion

Gets the index of the top row in this range.

Declared In

GridCellRange.h

  bottomRow

Gets the index of the bottom row in this range.

@property (readonly) int bottomRow

Discussion

Gets the index of the bottom row in this range.

Declared In

GridCellRange.h

  leftCol

Gets the index of the leftmost column in this range.

@property (readonly) int leftCol

Discussion

Gets the index of the leftmost column in this range.

Declared In

GridCellRange.h

  rightCol

Gets the index of the rightmost column in this range.

@property (readonly) int rightCol

Discussion

Gets the index of the rightmost column in this range.

Declared In

GridCellRange.h

  isValid

Checks whether this range contains valid row and column indices (> -1).

@property (readonly) BOOL isValid

Discussion

Checks whether this range contains valid row and column indices (> -1).

Declared In

GridCellRange.h

  isSingleCell

Checks whether this range corresponds to a single cell (row == row2 && col == col2).

@property (readonly) BOOL isSingleCell

Discussion

Checks whether this range corresponds to a single cell (row == row2 && col == col2).

Declared In

GridCellRange.h

– getRenderSize:

Get render size.

- (CGSize)getRenderSize:(GridPanel *_Nonnull)panel

Parameters

panel

the panel.

Return Value

a render size

Discussion

Get render size.

Declared In

GridCellRange.h

– containsRow:

Judge whether contains the specified row.

- (BOOL)containsRow:(int)r

Parameters

r

the specified row.

Return Value

a boolean value.

Discussion

Judge whether contains the specified row.

Declared In

GridCellRange.h

– containsColumn:

Judge whether contains the specified column.

- (BOOL)containsColumn:(int)c

Parameters

c

the specified column.

Return Value

a boolean value.

Discussion

Judge whether contains the specified column.

Declared In

GridCellRange.h

– contains:

udge whether contains the specified FlexCellRange object.

- (BOOL)contains:(GridCellRange *_Nonnull)other

Parameters

other

the specified FlexCellRange object.

Return Value

a boolean value.

Discussion

udge whether contains the specified FlexCellRange object.

Declared In

GridCellRange.h