Infragistics(R) NetAdvantage(R) WPF
GetCell(String,CellReferenceMode) Method
See Also  E-mail your feedback on this topic.
Infragistics.Documents.Excel Namespace > Worksheet Class > GetCell Method : GetCell(String,CellReferenceMode) Method

address
The address of the cell.
cellReferenceMode
The cell reference mode to use to parse the cell address.
Gets the cell at the specified address.

Syntax

Visual Basic (Declaration) 
Public Overloads Function GetCell( _
   ByVal address As String, _
   ByVal cellReferenceMode As CellReferenceMode _
) As WorksheetCell
C# 
public WorksheetCell GetCell( 
   string address,
   CellReferenceMode cellReferenceMode
)

Parameters

address
The address of the cell.
cellReferenceMode
The cell reference mode to use to parse the cell address.

Return Value

A cell represented by the specified address.

Exceptions

ExceptionDescription
System.ArgumentNullException is null.
System.ComponentModel.InvalidEnumArgumentException is not defined in the enumeration.
System.ArgumentException is not a valid cell or region address in the specified cell reference mode.
System.InvalidOperationException is a relative R1C1 address. The overload taking an origin cell must be used to resolve relative R1C1 references.

Remarks

If a region reference is specified instead of a cell reference, the top-left cell of the region at the address will be returned.

See Also