@univerjs/sheets-ui v0.5.0-beta.1Docs


Interface: IFormatPainterService

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

Parameters

ParameterType
hooksIFormatPainterHook

Returns

void

Defined in

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


applyFormatPainter()

applyFormatPainter(
   unitId, 
   subUnitId, 
   range): boolean

Parameters

ParameterType
unitIdstring
subUnitIdstring
rangeIRange

Returns

boolean

Defined in

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


getHooks()

getHooks(): IFormatPainterHook[]

Returns

IFormatPainterHook[]

Defined in

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


getSelectionFormat()

getSelectionFormat(): ISelectionFormatInfo

Returns

ISelectionFormatInfo

Defined in

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


getStatus()

getStatus(): FormatPainterStatus

Returns

FormatPainterStatus

Defined in

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


setSelectionFormat()

setSelectionFormat(format): void

Parameters

ParameterType
formatISelectionFormatInfo

Returns

void

Defined in

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


setStatus()

setStatus(status): void

Parameters

ParameterType
statusFormatPainterStatus

Returns

void

Defined in

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