@univerjs/sheets-ui v0.5.0-beta.1 • Docs
Interface: IFormatPainterService
Properties
Property | Type | Defined in |
---|---|---|
status$ | Observable <FormatPainterStatus > | submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:27 |
Methods
addHook()
addHook(hooks): void
Parameters
Parameter | Type |
---|---|
hooks | IFormatPainterHook |
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
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
range | IRange |
Returns
boolean
Defined in
submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:34
getHooks()
getHooks(): IFormatPainterHook[]
Returns
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
Defined in
submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:31
setSelectionFormat()
setSelectionFormat(format): void
Parameters
Parameter | Type |
---|---|
format | ISelectionFormatInfo |
Returns
void
Defined in
submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:32
setStatus()
setStatus(status): void
Parameters
Parameter | Type |
---|---|
status | FormatPainterStatus |
Returns
void
Defined in
submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:30