Search
CellRef Members
Constructors Fields Properties Methods
 


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

CellRef

Overloaded.  

 Public Fields

  Name Description

Invalid

Represents an invalid cell reference.

 Public Properties

  Name Description

Bottom

Gets the bottom side of the range.

BottomRight

Gets the bottom-right side of the range.

Height

Gets the height of the range.

IsColumnVector

Gets a value indicating whether the range is a column vector, that is, it has exactly one column.

IsMatrix

Gets a value indicating whether the range is an actual matrix, that is, it has at least 2 rows and 2 columns.

IsPoint

Gets a value indicating whether the range represents a single cell.

IsRowVector

Gets a value indicating whether the range is a row vector, that is, it has exactly one row.

IsValid

Gets a value indicating whether the range is a valid reference.

IsWholeColumn

Gets a value indicating whether the range represents an entire column or columns.

IsWholeRow

Gets a value indicating whether the range represents an entire row or rows.

Left

Gets the left side of the range.

RefType

Gets the reference type.

Right

Gets the right side of the range.

SheetRef

Gets the name of the reference sheet (if available).

Top

Gets the top side of the range.

TopLeft

Gets the top-left cell of the range.

Width

Gets the width of the range.

 Public Methods

  Name Description

Contains

Overloaded.  

Equals

Overloaded.  

FromRange

Initializes a new instance of the CellRef class from range endpoints.

GetHashCode

Object.GetHashCode override.

Intersect

Overloaded.  

IntersectsWith

 

IsValidRef

Checks whether the specified value represents a valid cell reference.

MakeAbsolute

Overloaded.  

Normalize

Returns an equivalent CellRef object with absolute rows and columns and the specified sheet, if the current CellRef does not have a sheet.

RefactorSheet

 

RenameSheet

Returns a new CellRef identical to the current CellRef with its SheetRef renamed.

ToAbsolute

Returns an equivalent CellRef object with absolute rows and columns.

ToOldStringFormat

Returns a string representing the cell range in the old format R1C1.

ToRelativeAndLocal

Returns an equivalent CellRef object with relative rows and columns, and no sheet reference.

ToString

Object.ToString override.

Translate

Translates the cell reference, by the specified amount and returns a string representing the translated value.

 See Also