API Reference
@univerjs
@univerjs/sheets
classes
Exclusiverangeservice

@univerjs/sheets v0.4.2Docs


Class: ExclusiveRangeService

Extends

Implements

Constructors

new ExclusiveRangeService()

new ExclusiveRangeService(): ExclusiveRangeService

Returns

ExclusiveRangeService

Inherited from

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)

Methods

addExclusiveRange()

addExclusiveRange(
   unitId, 
   sheetId, 
   feature, 
   ranges): void

Parameters

ParameterTypeDescription
unitIdstringThe unitId of the exclusive range
sheetIdstringThe sheetId of the exclusive range
featurestringThe feature of the exclusive range
rangesIFeatureRange[]-

Returns

void

Description

Add an exclusive range to the service

Implementation of

IExclusiveRangeService.addExclusiveRange

Defined in

packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:96 (opens in a new tab)


clearExclusiveRanges()

clearExclusiveRanges(
   unitId, 
   sheetId, 
   feature): void

Parameters

ParameterTypeDescription
unitIdstringThe unitId of the exclusive range
sheetIdstringThe sheetId of the exclusive range
featurestringThe feature of the exclusive range

Returns

void

Description

Clear the exclusive ranges

Implementation of

IExclusiveRangeService.clearExclusiveRanges

Defined in

packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:105 (opens in a new tab)


clearExclusiveRangesByGroupId()

clearExclusiveRangesByGroupId(
   unitId, 
   sheetId, 
   feature, 
   groupId): void

Parameters

ParameterTypeDescription
unitIdstringThe unitId of the exclusive range
sheetIdstringThe sheetId of the exclusive range
featurestringThe feature of the exclusive range
groupIdstringThe groupId of the exclusive range

Returns

void

Description

Clear the exclusive ranges by groupId

Implementation of

IExclusiveRangeService.clearExclusiveRangesByGroupId

Defined in

packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:110 (opens in a new tab)


dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


getExclusiveRanges()

getExclusiveRanges(
   unitId, 
   sheetId, 
   feature): undefined | IFeatureRange[]

Parameters

ParameterTypeDescription
unitIdstringThe unitId of the exclusive range
sheetIdstringThe sheetId of the exclusive range
featurestringThe feature of the exclusive range

Returns

undefined | IFeatureRange[]

The exclusive ranges

Description

Get the exclusive ranges

Implementation of

IExclusiveRangeService.getExclusiveRanges

Defined in

packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:101 (opens in a new tab)


getInterestGroupId()

getInterestGroupId(selections): string[]

Check the interest group id of the giving selection

Parameters

ParameterTypeDescription
selectionsISelectionWithStyle[]The selections to check

Returns

string[]

Implementation of

IExclusiveRangeService.getInterestGroupId

Defined in

packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:118 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.