public interface IFontService
Modifier and Type | Method and Description |
---|---|
void |
set(IRangeAddress range,
Consumer<IFontBuilder> builderConsumer)
Sets the font in the range of cells.For convenience, the user consumes a new instance of the
IFontBuilder
into which the desired values will be filled in. |
void |
set(IRangeAddress range,
IFont style)
Sets the font in the range of cells
|
void |
updateCommon(IRangeAddress range,
Consumer<IFontBuilder> builderConsumer)
Edits a common font in the range.
|
void |
updateCommon(IRangeAddress range,
UnaryOperator<IFont> editor)
Edits a common font in the range.
|
void updateCommon(IRangeAddress range, UnaryOperator<IFont> editor)
'Common' means here the following: the value of each attribute is not null when all cells from the selected area have the same value of the attribute. The value of the attribute is null when the font properties of a cell or cells are different from the properties of the other cells in the range
Edit only the attributes that are not null. Otherwise,
use the updateCommon(IRangeAddress, Consumer)
which is more convenient
range
- the IRangeAddress
in which the settings will be appliededitor
- the function which takes the current common style and produces the new style to be appliedUnaryOperator
void updateCommon(IRangeAddress range, Consumer<IFontBuilder> builderConsumer)
IFontBuilder
with the current
properties of the common font.
The function calls IFontBuilder.build()
and then updateCommon(IRangeAddress, UnaryOperator)
range
- the IRangeAddress
in which the settings will be appliedbuilderConsumer
- the function which takes IFontBuilder
filled with the current properties
of the common stylevoid set(IRangeAddress range, IFont style)
range
- the IRangeAddress
in which the settings will be appliedstyle
- the style to be setIRangeAddress
void set(IRangeAddress range, Consumer<IFontBuilder> builderConsumer)
IFontBuilder
into which the desired values will be filled in. The builder is instantiated from the IScellApiResolver
so that the user could register his own implementation using custom default data.
The function calls IFontBuilder.build()
and set(IRangeAddress, IFont)
with the obtained data resultrange
- the IRangeAddress
in which the settings will be appliedbuilderConsumer
- the Consumer with a new instance of IFontBuilder
IRangeAddress
Copyright © 2024. All rights reserved.