Function: getSectionBreakSlice()
function getSectionBreakSlice(
body,
startOffset,
endOffset):
| undefined
| {
charSpace: number;
columnProperties: ISectionColumnProperties[];
columnSeparatorType: ColumnSeparatorType;
contentDirection: TextDirection;
defaultFooterId: string;
defaultHeaderId: string;
documentFlavor: DocumentFlavor;
evenAndOddHeaders: BooleanNumber;
evenPageFooterId: string;
evenPageHeaderId: string;
firstPageFooterId: string;
firstPageHeaderId: string;
gridType: GridType;
linePitch: number;
marginBottom: number;
marginFooter: number;
marginHeader: number;
marginLeft: number;
marginRight: number;
marginTop: number;
pageNumberStart: number;
pageOrient: PageOrientType;
pageSize: ISize;
renderConfig: IDocumentRenderConfig;
sectionType: SectionType;
sectionTypeNext: SectionType;
startIndex: number;
textDirection: TextDirectionType;
useFirstPageHeaderFooter: BooleanNumber;
}[]
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/docs/data-model/text-x/utils.ts:129
Parameters
Parameter | Type |
---|---|
body | IDocumentBody |
startOffset | number |
endOffset | number |
Returns
| undefined
| {
charSpace
: number
;
columnProperties
: ISectionColumnProperties
[];
columnSeparatorType
: ColumnSeparatorType
;
contentDirection
: TextDirection
;
defaultFooterId
: string
;
defaultHeaderId
: string
;
documentFlavor
: DocumentFlavor
;
evenAndOddHeaders
: BooleanNumber
;
evenPageFooterId
: string
;
evenPageHeaderId
: string
;
firstPageFooterId
: string
;
firstPageHeaderId
: string
;
gridType
: GridType
;
linePitch
: number
;
marginBottom
: number
;
marginFooter
: number
;
marginHeader
: number
;
marginLeft
: number
;
marginRight
: number
;
marginTop
: number
;
pageNumberStart
: number
;
pageOrient
: PageOrientType
;
pageSize
: ISize
;
renderConfig
: IDocumentRenderConfig
;
sectionType
: SectionType
;
sectionTypeNext
: SectionType
;
startIndex
: number
;
textDirection
: TextDirectionType
;
useFirstPageHeaderFooter
: BooleanNumber
;
}[]