Daniel's XL Toolbox NG
XLToolbox.Excel.Models.RowHelper Class Reference

Helper class to facilitate handling of row addresses. More...

Inheritance diagram for XLToolbox.Excel.Models.RowHelper:
Collaboration diagram for XLToolbox.Excel.Models.RowHelper:

Public Member Functions

 RowHelper ()
 
 RowHelper (string rowReference)
 
 RowHelper (long rowNumber)
 
 RowHelper (long rowNumber, bool isFixed)
 
- Public Member Functions inherited from XLToolbox.Excel.Models.RangeHelperBase
void ToggleFixed ()
 
override string ToString ()
 
int CompareTo (object obj)
 

Protected Member Functions

override string FormatNumber (long number)
 Returns a number formatted as a string. More...
 
override long ParseNumber (string formatted)
 Parses a formatted reference string. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from XLToolbox.Excel.Models.RangeHelperBase
static bool operator< (RangeHelperBase one, RangeHelperBase other)
 
static bool operator<= (RangeHelperBase one, RangeHelperBase other)
 
static bool operator> (RangeHelperBase one, RangeHelperBase other)
 
static bool operator>= (RangeHelperBase one, RangeHelperBase other)
 
- Properties inherited from XLToolbox.Excel.Models.RangeHelperBase
string Reference [get, set]
 
string UnfixedReference [get]
 
string FixedReference [get]
 
bool IsFixed [get, set]
 
long Number [get, set]
 

Detailed Description

Helper class to facilitate handling of row addresses.

Constructor & Destructor Documentation

◆ RowHelper() [1/4]

XLToolbox.Excel.Models.RowHelper.RowHelper ( )
inline

◆ RowHelper() [2/4]

XLToolbox.Excel.Models.RowHelper.RowHelper ( string  rowReference)
inline

◆ RowHelper() [3/4]

XLToolbox.Excel.Models.RowHelper.RowHelper ( long  rowNumber)
inline

◆ RowHelper() [4/4]

XLToolbox.Excel.Models.RowHelper.RowHelper ( long  rowNumber,
bool  isFixed 
)
inline

Member Function Documentation

◆ FormatNumber()

override string XLToolbox.Excel.Models.RowHelper.FormatNumber ( long  number)
inlineprotectedvirtual

Returns a number formatted as a string.

Parameters
numberNumber to format.
Returns
Formatted string.

Implements XLToolbox.Excel.Models.RangeHelperBase.

◆ ParseNumber()

override long XLToolbox.Excel.Models.RowHelper.ParseNumber ( string  formatted)
inlineprotectedvirtual

Parses a formatted reference string.

This method is called by the Reference setter which will strip a dollar sign (if present) from the formatted string first.

Parameters
formattedString containing a formatted number.
Returns
Number read from the string.

Implements XLToolbox.Excel.Models.RangeHelperBase.


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