[]
        
(Showing Draft Content)

C1.C1Preview.UserCellGroup.-ctor

UserCellGroup Constructor

UserCellGroup(Rectangle)

Initializes a new instance of the UserCellGroup class, includes a range of cells identified by a rectangular area, in the group.

Declaration
public UserCellGroup(Rectangle range)
Parameters
Type Name Description
Rectangle range

Identifies a rectangluar range of cells as follows:

  • range.X is the column index of the top left cell;
  • range.Y is the row index of the top left cell;
  • range.Width is the number of columns;
  • range.Height is the number of rows.

UserCellGroup(Point)

Initializes a new instance of the UserCellGroup class, includes a single cell identified by its coordinates, in the group.

Declaration
public UserCellGroup(Point cell)
Parameters
Type Name Description
Point cell

Identifies a cell as follows:

  • cell.X is the column index of the cell;
  • cell.Y is the row index of the cell.

UserCellGroup(params Rectangle[])

Initializes a new instance of the UserCellGroup class, includes a range of cells identified by a list of rectangular areas, in the group.

Declaration
public UserCellGroup(params Rectangle[] ranges)
Parameters
Type Name Description
Rectangle[] ranges

The list of rectangular areas to include in the group, each area is identified by a Rectangle structure as follows:

  • X is the column index of the top left cell;
  • Y is the row index of the top left cell;
  • Width is the number of columns;
  • X is the number of rows.

UserCellGroup(params Point[])

Initializes a new instance of the UserCellGroup class, includes a range of cells identified by a list of cell coordinates, in the group.

Declaration
public UserCellGroup(params Point[] cells)
Parameters
Type Name Description
Point[] cells

The list of cell coordinates to include in the group, each cell is identified by a Point structure as follows:

  • X is the column index of the cell;
  • Y is the row index of the cell.

UserCellGroup(params object[])

Initializes a new instance of the UserCellGroup class, includes a range of cells identified by a list of rectangular areas or individual cell coordnates, in the group.

Declaration
public UserCellGroup(params object[] areas)
Parameters
Type Name Description
object[] areas

The list of rectangular areas or individual cell coordnates to include in the group, each item in the list may be either a Rectangle or a Point structure.

If the item is a Rectangle, it identifies an area to include as follows:
  • X is the column index of the top left cell;
  • Y is the row index of the top left cell;
  • Width is the number of columns;
  • X is the number of rows.
If the item is a Point, it identifies a cell to include as follows:
  • X is the column index of the cell;
  • Y is the row index of the cell.