@univerjs/core v0.5.0-beta.1 • Docs
Function: getBodySlice()
function getBodySlice(
body,
startOffset,
endOffset,
returnEmptyArray,
type): IDocumentBody
Parameters
Parameter | Type | Default value |
---|---|---|
body | IDocumentBody | undefined |
startOffset | number | undefined |
endOffset | number | undefined |
returnEmptyArray | boolean | true |
type | SliceBodyType | SliceBodyType.cut |
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/utils.ts:30