@univerjs/sheets-ui v0.4.2 • Docs
Interface: IFormatPainterService
Properties
Property | Type | Defined 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
Parameter | Type |
---|---|
hooks | IFormatPainterHook |
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
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
range | IRange |
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
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
Defined in
packages/sheets-ui/src/services/format-painter/format-painter.service.ts:31 (opens in a new tab)
setSelectionFormat()
setSelectionFormat(format): void
Parameters
Parameter | Type |
---|---|
format | ISelectionFormatInfo |
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
Parameter | Type |
---|---|
status | FormatPainterStatus |
Returns
void
Defined in
packages/sheets-ui/src/services/format-painter/format-painter.service.ts:30 (opens in a new tab)