Package io.keikai.axyra.sheets.content
Class RichText.Run
java.lang.Object
io.keikai.axyra.sheets.content.RichText.Run
- Enclosing class:
- RichText
Per-run font overrides, created with
RichText.run(). A property
left unset inherits the cell font.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbold()Makes the run bold.Sets the run's font color.Sets the run's font name, such as"Arial"; without it the run uses the cell font.fontSize(double points) Sets the run's font size in points.italic()Makes the run italic.strike()Strikes through the run.Single-underlines the run.
-
Constructor Details
-
Run
public Run()
-
-
Method Details
-
bold
Makes the run bold. -
italic
Makes the run italic. -
underline
Single-underlines the run. -
strike
Strikes through the run. -
fontName
Sets the run's font name, such as"Arial"; without it the run uses the cell font. -
fontSize
Sets the run's font size in points. -
color
Sets the run's font color. Only RGB colors are accepted.- Throws:
IllegalStateException- ifcoloris a theme, indexed or automatic colorNullPointerException- ifcoloris null
-