Click or drag to resize
ExcelRectCellAddressIsValid Method
Static method. Returns whether the given CellAddress is valid.

Namespace: Aceoffix.Utilities
Assembly: Aceoffix (in Aceoffix.dll) Version: 5.0.0.1
Syntax
public static bool CellAddressIsValid(
	string CellAddress
)

Parameters

CellAddress
Type: SystemString

The CellAddress represents a single cell and it must use A1-style notation.

Note Note

The A1-style notation is defined in Microsoft Excel. For example: the B5 cell is the cell whose row index is 5 and column index is 2.

Note: There is a limit that the maximum number of columns per worksheet is 676 and the maximum number of rows is 65,536 in Excel2003 and earlier versions.

Return Value

Type: Boolean
true if the specified CellAddress is valid; otherwise, false.
Remarks
Static method. Returns whether the given CellAddress is valid.
Examples
if(Aceoffix.Utilities.ExcelRect.CellAddressIsValid("B5"))
{
    // Do someting.
}
See Also