OpenXLSX 1.9.1
Loading...
Searching...
No Matches
OpenXLSX::XLDefinedNames Class Reference

A class representing the collection of defined names in a workbook. More...

#include <XLWorkbook.hpp>

Public Member Functions

 XLDefinedNames ()=default
 
 XLDefinedNames (const XMLNode &node)
 
XLDefinedName append (std::string_view name, std::string_view formula, std::optional< uint32_t > localSheetId=std::nullopt)
 
void remove (std::string_view name, std::optional< uint32_t > localSheetId=std::nullopt)
 
XLDefinedName get (std::string_view name, std::optional< uint32_t > localSheetId=std::nullopt) const
 
std::vector< XLDefinedNameall () const
 
bool exists (std::string_view name, std::optional< uint32_t > localSheetId=std::nullopt) const
 
size_t count () const
 

Detailed Description

A class representing the collection of defined names in a workbook.

Constructor & Destructor Documentation

◆ XLDefinedNames() [1/2]

OpenXLSX::XLDefinedNames::XLDefinedNames ( )
default

◆ XLDefinedNames() [2/2]

XLDefinedNames::XLDefinedNames ( const XMLNode node)
explicit

Member Function Documentation

◆ all()

std::vector< XLDefinedName > XLDefinedNames::all ( ) const

◆ append()

XLDefinedName XLDefinedNames::append ( std::string_view  name,
std::string_view  formula,
std::optional< uint32_t >  localSheetId = std::nullopt 
)

◆ count()

size_t XLDefinedNames::count ( ) const

◆ exists()

bool XLDefinedNames::exists ( std::string_view  name,
std::optional< uint32_t >  localSheetId = std::nullopt 
) const

◆ get()

XLDefinedName XLDefinedNames::get ( std::string_view  name,
std::optional< uint32_t >  localSheetId = std::nullopt 
) const

◆ remove()

void XLDefinedNames::remove ( std::string_view  name,
std::optional< uint32_t >  localSheetId = std::nullopt 
)

The documentation for this class was generated from the following files: