ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
spark.components.gridClasses 

CellRegion  - AS3 Flex

Packagespark.components.gridClasses
Classpublic class CellRegion
InheritanceCellRegion Inheritance Object

Language Version: ActionScript 3.0
Product Version: Flex 4.5
Runtime Versions: Flash Player 10, AIR 2.5

The CellRegion class defines a data structure used by the Spark data grid classes to represent a rectangular region of cells in the control. The origin of the region is specified by the rowIndex and columnIndex properties. The extent of the region is specified by the rowCount and the columnCount properties.

Related API Elements



Public Properties
 PropertyDefined By
  columnCount : int
The number of columns in the cell region.
CellRegion
  columnIndex : int
The 0-based column index of the origin of the cell region.
CellRegion
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  rowCount : int
The number of rows in the cell region.
CellRegion
  rowIndex : int
The 0-based row index of the origin of the cell region.
CellRegion
Public Methods
 MethodDefined By
  
CellRegion(rowIndex:int = -1, columnIndex:int = -1, rowCount:int = 0, columnCount:int = 0)
Constructor.
CellRegion
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail

columnCount

property
columnCount:int

Language Version: ActionScript 3.0
Product Version: Flex 4.5
Runtime Versions: Flash Player 10, AIR 2.5

The number of columns in the cell region.

The default value is 0.



Implementation
    public function get columnCount():int
    public function set columnCount(value:int):void

columnIndex

property 
columnIndex:int

Language Version: ActionScript 3.0
Product Version: Flex 4.5
Runtime Versions: Flash Player 10, AIR 2.5

The 0-based column index of the origin of the cell region. A value of -1 indicates that the value is not set.

The default value is -1.



Implementation
    public function get columnIndex():int
    public function set columnIndex(value:int):void

rowCount

property 
rowCount:int

Language Version: ActionScript 3.0
Product Version: Flex 4.5
Runtime Versions: Flash Player 10, AIR 2.5

The number of rows in the cell region.

The default value is 0.



Implementation
    public function get rowCount():int
    public function set rowCount(value:int):void

rowIndex

property 
rowIndex:int

Language Version: ActionScript 3.0
Product Version: Flex 4.5
Runtime Versions: Flash Player 10, AIR 2.5

The 0-based row index of the origin of the cell region. A value of -1 indicates that the value is not set.

The default value is -1.



Implementation
    public function get rowIndex():int
    public function set rowIndex(value:int):void
Constructor Detail

CellRegion

()Constructor
public function CellRegion(rowIndex:int = -1, columnIndex:int = -1, rowCount:int = 0, columnCount:int = 0)

Language Version: ActionScript 3.0
Product Version: Flex 4.5
Runtime Versions: Flash Player 10, AIR 2.5

Constructor.

Parameters
rowIndex:int (default = -1) — The 0-based row index of the origin cell. A value of -1 indicates that the value is not set.
 
columnIndex:int (default = -1) — The 0-based column index of the origin cell. A value of -1 indicates that the value is not set.
 
rowCount:int (default = 0) — The number of rows in the cell region.
 
columnCount:int (default = 0) — The number of columns in the cell region.