@univerjs/sheets v0.5.0-beta.1 • Docs
Class: ExclusiveRangeService
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:93 |
Methods
addExclusiveRange()
addExclusiveRange(
unitId,
sheetId,
feature,
ranges): void
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
Defined in
submodules/univer/packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:96
clearExclusiveRanges()
clearExclusiveRanges(
unitId,
sheetId,
feature): void
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
Defined in
submodules/univer/packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:105
clearExclusiveRangesByGroupId()
clearExclusiveRangesByGroupId(
unitId,
sheetId,
feature,
groupId): void
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
Defined in
submodules/univer/packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:110
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:106
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:100
getExclusiveRanges()
getExclusiveRanges(
unitId,
sheetId,
feature): undefined | IFeatureRange[]
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
Defined in
submodules/univer/packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:101
getInterestGroupId()
getInterestGroupId(selections): string[]
Check the interest group id of the giving selection
Parameters
Parameter | Type | Description |
---|---|---|
selections | ISelectionWithStyle [] | The selections to check |
Returns
string
[]
Implementation of
IExclusiveRangeService
.getInterestGroupId
Defined in
submodules/univer/packages/sheets/src/services/exclusive-range/exclusive-range-service.ts:118