Class: ExclusiveRangeService
Defined in: submodules/univer/packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:71
Extends
Implements
Constructors
new ExclusiveRangeService()
new ExclusiveRangeService(): ExclusiveRangeService
Returns
Inherited from
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
exclusiveRangesChange$ | public | Observable <{ ranges : IRange []; subUnitId : string ; unitId : string ; }> | undefined | - | submodules/univer/packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:78 |
Methods
addExclusiveRange()
addExclusiveRange(
unitId,
sheetId,
feature,
ranges): void
Defined in: submodules/univer/packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:103
Parameters
Parameter | Type | Description |
---|---|---|
unitId | string | The unitId of the exclusive range |
sheetId | string | The sheetId of the exclusive range |
feature | string | The feature of the exclusive range |
ranges | IFeatureRange [] | - |
Returns
void
Description
Add an exclusive range to the service
Implementation of
IExclusiveRangeService
.addExclusiveRange
clearExclusiveRanges()
clearExclusiveRanges(
unitId,
sheetId,
feature): void
Defined in: submodules/univer/packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:113
Parameters
Parameter | Type | Description |
---|---|---|
unitId | string | The unitId of the exclusive range |
sheetId | string | The sheetId of the exclusive range |
feature | string | The feature of the exclusive range |
Returns
void
Description
Clear the exclusive ranges
Implementation of
IExclusiveRangeService
.clearExclusiveRanges
clearExclusiveRangesByGroupId()
clearExclusiveRangesByGroupId(
unitId,
sheetId,
feature,
groupId): void
Defined in: submodules/univer/packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:121
Parameters
Parameter | Type | Description |
---|---|---|
unitId | string | The unitId of the exclusive range |
sheetId | string | The sheetId of the exclusive range |
feature | string | The feature of the exclusive range |
groupId | string | The groupId of the exclusive range |
Returns
void
Description
Clear the exclusive ranges by groupId
Implementation of
IExclusiveRangeService
.clearExclusiveRangesByGroupId
dispose()
dispose(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109
Returns
void
Inherited from
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getExclusiveRanges()
getExclusiveRanges(
unitId,
sheetId,
feature): undefined | IFeatureRange[]
Defined in: submodules/univer/packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:109
Parameters
Parameter | Type | Description |
---|---|---|
unitId | string | The unitId of the exclusive range |
sheetId | string | The sheetId of the exclusive range |
feature | string | The feature of the exclusive range |
Returns
undefined
| IFeatureRange
[]
The exclusive ranges
Description
Get the exclusive ranges
Implementation of
IExclusiveRangeService
.getExclusiveRanges
getInterestGroupId()
getInterestGroupId(selections): string[]
Defined in: submodules/univer/packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:131
Check the interest group id of the giving selection
Parameters
Parameter | Type | Description |
---|---|---|
selections | ISelectionWithStyle [] | The selections to check |
Returns
string
[]