@univerjssheetsindexinterfacesIexclusiverangeservice

@univerjs/sheets v0.5.4


Interface: IExclusiveRangeService

Defined in: submodules/univer/packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:28

Properties

PropertyTypeDefined in
exclusiveRangesChange$Observable<{ ranges: IRange[]; subUnitId: string; unitId: string; }>submodules/univer/packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:29

Methods

addExclusiveRange()

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

Defined in: submodules/univer/packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:38

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


clearExclusiveRanges()

clearExclusiveRanges(
   unitId, 
   sheetId, 
   feature): void

Defined in: submodules/univer/packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:53

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


clearExclusiveRangesByGroupId()

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

Defined in: submodules/univer/packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:62

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


getExclusiveRanges()

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

Defined in: submodules/univer/packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:46

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


getInterestGroupId()

getInterestGroupId(selections): string[]

Defined in: submodules/univer/packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:67

Check the interest group id of the giving selection

Parameters

ParameterTypeDescription
selectionsISelectionWithStyle[]The selections to check

Returns

string[]