@univerjs/core v0.4.2 • Docs
Function: getBodySlice()
function getBodySlice(
body,
startOffset,
endOffset,
returnEmptyTextRun,
type): IDocumentBody
Parameters
Parameter | Type | Default value |
---|---|---|
body | IDocumentBody | undefined |
startOffset | number | undefined |
endOffset | number | undefined |
returnEmptyTextRun | boolean | false |
type | SliceBodyType | SliceBodyType.cut |
Returns
Defined in
submodules/univer/packages/core/src/docs/data-model/text-x/utils.ts:31 (opens in a new tab)