@univerjs/sheets-ui v0.5.4


Interface: IFormatPainterService

Defined in: submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:26

Properties

PropertyTypeDefined in
status$Observable<FormatPainterStatus>submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:27

Methods

addHook()

addHook(hooks): void

Defined in: submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:28

Parameters

ParameterType
hooksIFormatPainterHook

Returns

void


applyFormatPainter()

applyFormatPainter(
   unitId, 
   subUnitId, 
   range): boolean

Defined in: submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:34

Parameters

ParameterType
unitIdstring
subUnitIdstring
rangeIRange

Returns

boolean


getHooks()

getHooks(): IFormatPainterHook[]

Defined in: submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:29

Returns

IFormatPainterHook[]


getSelectionFormat()

getSelectionFormat(): ISelectionFormatInfo

Defined in: submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:33

Returns

ISelectionFormatInfo


getStatus()

getStatus(): FormatPainterStatus

Defined in: submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:31

Returns

FormatPainterStatus


setSelectionFormat()

setSelectionFormat(format): void

Defined in: submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:32

Parameters

ParameterType
formatISelectionFormatInfo

Returns

void


setStatus()

setStatus(status): void

Defined in: submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:30

Parameters

ParameterType
statusFormatPainterStatus

Returns

void