API Reference
@univerjs
@univerjs/core
functions
Getbodyslice

@univerjs/core v0.4.2Docs


Function: getBodySlice()

function getBodySlice(
   body, 
   startOffset, 
   endOffset, 
   returnEmptyTextRun, 
   type): IDocumentBody

Parameters

ParameterTypeDefault value
bodyIDocumentBodyundefined
startOffsetnumberundefined
endOffsetnumberundefined
returnEmptyTextRunbooleanfalse
typeSliceBodyTypeSliceBodyType.cut

Returns

IDocumentBody

Defined in

submodules/univer/packages/core/src/docs/data-model/text-x/utils.ts:31 (opens in a new tab)


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