Class RichText


  • public final class RichText
    extends Object
    Rich inline string value: a sequence of runs, each carrying its own font formatting. Pass an instance to Worksheet.inlineString(int, int, RichText) to write it.

    Wire format follows OOXML (ECMA-376 §18.4): <is><r><rPr>...</rPr><t>...</t></r>...</is>.

    Use builder() to construct an instance. The RichText.Run constructor is package-private on purpose — runs are created through the builder.

    • Constructor Detail

      • RichText

        public RichText​(List<RichText.Run> runs)
        Parameters:
        runs - Runs that make up this rich string. Must not be null; an empty list is allowed and produces an empty <is/>.