range method

This method returns a Range object that represents a cell or a range of cells.

Defined in

Sheet

Syntax

public Range range(String name) throws SymphonyException
public Range range(Range range1, Range range2) throws SymphonyException

Parameters

String name

Specifies the range name of the new range. The name of range can represent a single cell, such as "A1", or represent a range containing a collection of cells, such as : "C2:E20", "B1:D10".

Range range1

Specifies the start of the new range.

Range range2

Specifies the end of the new range.

range( range1, range2 ) returns the union range of range1 and range2 .

Return Value

range

A Range object that represents a cell or a range of cells.

Usage

This method throws an exception if the range name is invalid or the value of any parameter is null.

See examples

Example: range method