API Reference
@univerjs
@univerjs/engine-formula
functions
Getrangewithrefsstring

@univerjs/engine-formula v0.4.2Docs


Function: getRangeWithRefsString()

function getRangeWithRefsString(refString, getSheetIdByName): IUnitRangeWithName[]

implement getSheetIdByName function getSheetIdByName(name: string) { return univerInstanceService.getCurrentUnitForType(UniverInstanceType.UNIVER_SHEET)?.getSheetBySheetName(name)?.getSheetId() || ''; }

Parameters

ParameterType
refStringstring
getSheetIdByName(name) => string

Returns

IUnitRangeWithName[]

Defined in

packages/engine-formula/src/engine/utils/reference.ts:353 (opens in a new tab)


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