An immutable representation of a reference to a single cell or a rectanglular area of cells, optionally including a sheet reference.
The following tables list the members exposed by the CellRef type.
Public Constructors| Name | Description | |
|---|---|---|
![]() |
Overloaded. |
Public Fields| Name | Description | |
|---|---|---|
![]() ![]() |
Represents an invalid cell reference. |
Public Properties| Name | Description | |
|---|---|---|
![]() |
Gets the bottom side of the range. |
|
![]() |
Gets the bottom-right side of the range. |
|
![]() |
Gets the height of the range. |
|
![]() |
Gets a value indicating whether the range is a column vector, that is, it has exactly one column. |
|
![]() |
Gets a value indicating whether the range is an actual matrix, that is, it has at least 2 rows and 2 columns. |
|
![]() |
Gets a value indicating whether the range represents a single cell. |
|
![]() |
Gets a value indicating whether the range is a row vector, that is, it has exactly one row. |
|
![]() |
Gets a value indicating whether the range is a valid reference. |
|
![]() |
Gets a value indicating whether the range represents an entire column or columns. |
|
![]() |
Gets a value indicating whether the range represents an entire row or rows. |
|
![]() |
Gets the left side of the range. |
|
![]() |
Gets the reference type. |
|
![]() |
Gets the right side of the range. |
|
![]() |
Gets the name of the reference sheet (if available). |
|
![]() |
Gets the top side of the range. |
|
![]() |
Gets the top-left cell of the range. |
|
![]() |
Gets the width of the range. |
Public Methods| Name | Description | |
|---|---|---|
![]() |
Overloaded. |
|
![]() |
Overloaded. |
|
![]() ![]() |
Initializes a new instance of the CellRef class from range endpoints. |
|
![]() |
Object.GetHashCode override. |
|
![]() |
Overloaded. |
|
![]() |
|
|
![]() ![]() |
Checks whether the specified value represents a valid cell reference. |
|
![]() ![]() |
Overloaded. |
|
![]() |
Returns an equivalent CellRef object with absolute rows and columns and the specified sheet, if the current CellRef does not have a sheet. |
|
![]() |
|
|
![]() |
Returns a new CellRef identical to the current CellRef with its SheetRef renamed. |
|
![]() |
Returns an equivalent CellRef object with absolute rows and columns. |
|
![]() |
Returns a string representing the cell range in the old format R1C1. |
|
![]() |
Returns an equivalent CellRef object with relative rows and columns, and no sheet reference. |
|
![]() |
Object.ToString override. |
|
![]() |
Translates the cell reference, by the specified amount and returns a string representing the translated value. |
See Also