[]
        
(Showing Draft Content)

GC.Spread.Sheets.DataRange.DataRangeManager

Class: DataRangeManager

Sheets.DataRange.DataRangeManager

Table of contents

Constructors

Methods

Constructors

constructor

new DataRangeManager(sheet)

description Represents a data range manager.

Parameters

Name Type Description
sheet Worksheet The worksheet.

Methods

add

add(name, dataProvider, range, options?): DataRange

description Adds a data range.

Parameters

Name Type Description
name string The data range name.
dataProvider string | IDataProvider The data provider. String type means the tableSheet name, it will create a TableSheetDataProvider.
range Range The range of data range.
options? IDataRangeOptions -

Returns

DataRange

The added data range.


all

all(): DataRange[]

description Get all data ranges.

Returns

DataRange[]

The array of data range instances. Default is empty array.


clear

clear(): void

description Remove all data ranges.

Returns

void


get

get(name): DataRange

description Gets a data range.

Parameters

Name Type Description
name string The data range name.

Returns

DataRange

The target data range.


remove

remove(name): void

description Remove a data range.

Parameters

Name Type Description
name string The data range name.

Returns

void