API Reference
@univerjs
@univerjs/sheets-ui
interfaces
Iformatpainterservice

@univerjs/sheets-ui v0.4.2Docs


Interface: IFormatPainterService

Properties

PropertyTypeDefined in
status$Observable<FormatPainterStatus>packages/sheets-ui/src/services/format-painter/format-painter.service.ts:27 (opens in a new tab)

Methods

addHook()

addHook(hooks): void

Parameters

ParameterType
hooksIFormatPainterHook

Returns

void

Defined in

packages/sheets-ui/src/services/format-painter/format-painter.service.ts:28 (opens in a new tab)


applyFormatPainter()

applyFormatPainter(
   unitId, 
   subUnitId, 
   range): boolean

Parameters

ParameterType
unitIdstring
subUnitIdstring
rangeIRange

Returns

boolean

Defined in

packages/sheets-ui/src/services/format-painter/format-painter.service.ts:34 (opens in a new tab)


getHooks()

getHooks(): IFormatPainterHook[]

Returns

IFormatPainterHook[]

Defined in

packages/sheets-ui/src/services/format-painter/format-painter.service.ts:29 (opens in a new tab)


getSelectionFormat()

getSelectionFormat(): ISelectionFormatInfo

Returns

ISelectionFormatInfo

Defined in

packages/sheets-ui/src/services/format-painter/format-painter.service.ts:33 (opens in a new tab)


getStatus()

getStatus(): FormatPainterStatus

Returns

FormatPainterStatus

Defined in

packages/sheets-ui/src/services/format-painter/format-painter.service.ts:31 (opens in a new tab)


setSelectionFormat()

setSelectionFormat(format): void

Parameters

ParameterType
formatISelectionFormatInfo

Returns

void

Defined in

packages/sheets-ui/src/services/format-painter/format-painter.service.ts:32 (opens in a new tab)


setStatus()

setStatus(status): void

Parameters

ParameterType
statusFormatPainterStatus

Returns

void

Defined in

packages/sheets-ui/src/services/format-painter/format-painter.service.ts:30 (opens in a new tab)


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