OpenXLSX 1.12.1
Modern C++ Excel Library (Fork of OpenXLSX by Kenneth Troldal Balslev)
Loading...
Searching...
No Matches
OpenXLSX::XLRichText Class Reference

A class representing rich text in a cell. More...

#include <XLRichText.hpp>

Public Member Functions

 XLRichText ()=default
 XLRichText (const std::string &plainText)
XLRichText & addRun (const XLRichTextRun &run)
XLRichTextRun & addRun (const std::string &text)
const std::vector< XLRichTextRun > & runs () const
std::vector< XLRichTextRun > & runs ()
std::string plainText () const
 Get the plain text representation of the rich text.
bool empty () const
void clear ()
XLRichText & operator+= (const XLRichText &other)
XLRichText & operator+= (const std::string &text)
XLRichText & operator+= (const XLRichTextRun &run)

Detailed Description

A class representing rich text in a cell.

Constructor & Destructor Documentation

◆ XLRichText() [1/2]

OpenXLSX::XLRichText::XLRichText ( )
default

◆ XLRichText() [2/2]

OpenXLSX::XLRichText::XLRichText ( const std::string & plainText)
inlineexplicit

Member Function Documentation

◆ addRun() [1/2]

XLRichTextRun & OpenXLSX::XLRichText::addRun ( const std::string & text)
inline

◆ addRun() [2/2]

XLRichText & OpenXLSX::XLRichText::addRun ( const XLRichTextRun & run)
inline

◆ clear()

void OpenXLSX::XLRichText::clear ( )
inline

◆ empty()

bool OpenXLSX::XLRichText::empty ( ) const
inline

◆ operator+=() [1/3]

XLRichText & OpenXLSX::XLRichText::operator+= ( const std::string & text)
inline

◆ operator+=() [2/3]

XLRichText & OpenXLSX::XLRichText::operator+= ( const XLRichText & other)
inline

◆ operator+=() [3/3]

XLRichText & OpenXLSX::XLRichText::operator+= ( const XLRichTextRun & run)
inline

◆ plainText()

std::string OpenXLSX::XLRichText::plainText ( ) const
inline

Get the plain text representation of the rich text.

◆ runs() [1/2]

std::vector< XLRichTextRun > & OpenXLSX::XLRichText::runs ( )
inline

◆ runs() [2/2]

const std::vector< XLRichTextRun > & OpenXLSX::XLRichText::runs ( ) const
inline

The documentation for this class was generated from the following file:
  • /home/runner/work/OpenXLSX-NX/OpenXLSX-NX/OpenXLSX/headers/XLRichText.hpp