NanoXLSX.Reader 3.0.0-rc.2
Loading...
Searching...
No Matches
NanoXLSX.Internal.StyleReaderContainer Class Reference

Class representing a collection of pre-processed styles and their components. This class is internally used and should not be used otherwise. More...

Public Member Functions

void AddStyleComponent (AbstractStyle component)
 Adds a style component and determines the appropriate type of it automatically.
Style GetStyle (int index)
 Returns a whole style by its index.
Style GetStyle (int index, out bool isDateStyle, out bool isTimeStyle)
 Returns a whole style by its index. It also returns information about the type of the style.
NumberFormat GetNumberFormat (int index)
 Returns a number format component by its index.
Border GetBorder (int index)
 Returns a border component by its index.
Fill GetFill (int index)
 Returns a fill component by its index.
Font GetFont (int index)
 Returns a font component by its index.
int GetNextStyleId ()
 Gets the next internal id of a style.
int GetNextCellXFId ()
 Gets the next internal id of a cell XF component.
int GetNextBorderId ()
 Gets the next internal id of a border component.
int GetNextFillId ()
 Gets the next internal id of a fill component.
int GetNextFontId ()
 Gets the next internal id of a font component.

Properties

int StyleCount [get]
 Gets the number of resolved styles.

Detailed Description

Class representing a collection of pre-processed styles and their components. This class is internally used and should not be used otherwise.

Definition at line 18 of file StyleReaderContainer.cs.

Member Function Documentation

◆ AddStyleComponent()

void NanoXLSX.Internal.StyleReaderContainer.AddStyleComponent ( AbstractStyle component)

Adds a style component and determines the appropriate type of it automatically.

Parameters
componentStyle component to add to the collections

Definition at line 52 of file StyleReaderContainer.cs.

◆ GetBorder()

Border NanoXLSX.Internal.StyleReaderContainer.GetBorder ( int index)

Returns a border component by its index.

Parameters
indexInternal index of the style component
Returns
Style component or null if the component could not be retrieved

Definition at line 126 of file StyleReaderContainer.cs.

◆ GetFill()

Fill NanoXLSX.Internal.StyleReaderContainer.GetFill ( int index)

Returns a fill component by its index.

Parameters
indexInternal index of the style component
Returns
Style component or null if the component could not be retrieved

Definition at line 136 of file StyleReaderContainer.cs.

◆ GetFont()

Font NanoXLSX.Internal.StyleReaderContainer.GetFont ( int index)

Returns a font component by its index.

Parameters
indexInternal index of the style component
Returns
Style component or null if the component could not be retrieved

Definition at line 146 of file StyleReaderContainer.cs.

◆ GetNextBorderId()

int NanoXLSX.Internal.StyleReaderContainer.GetNextBorderId ( )

Gets the next internal id of a border component.

Returns
Next id of the component type (collected in this class)

Definition at line 173 of file StyleReaderContainer.cs.

◆ GetNextCellXFId()

int NanoXLSX.Internal.StyleReaderContainer.GetNextCellXFId ( )

Gets the next internal id of a cell XF component.

Returns
Next id of the component type (collected in this class)

Definition at line 164 of file StyleReaderContainer.cs.

◆ GetNextFillId()

int NanoXLSX.Internal.StyleReaderContainer.GetNextFillId ( )

Gets the next internal id of a fill component.

Returns
Next id of the component type (collected in this class)

Definition at line 182 of file StyleReaderContainer.cs.

◆ GetNextFontId()

int NanoXLSX.Internal.StyleReaderContainer.GetNextFontId ( )

Gets the next internal id of a font component.

Returns
Next id of the component type (collected in this class)

Definition at line 191 of file StyleReaderContainer.cs.

◆ GetNextStyleId()

int NanoXLSX.Internal.StyleReaderContainer.GetNextStyleId ( )

Gets the next internal id of a style.

Returns
Next id of styles (collected in this class)

Definition at line 155 of file StyleReaderContainer.cs.

◆ GetNumberFormat()

NumberFormat NanoXLSX.Internal.StyleReaderContainer.GetNumberFormat ( int index)

Returns a number format component by its index.

Parameters
indexInternal index of the style component
Returns
Style component or null if the component could not be retrieved

Definition at line 116 of file StyleReaderContainer.cs.

◆ GetStyle() [1/2]

Style NanoXLSX.Internal.StyleReaderContainer.GetStyle ( int index)

Returns a whole style by its index.

Parameters
indexIndex of the style
Returns
Style object or null if the component could not be retrieved

Definition at line 86 of file StyleReaderContainer.cs.

◆ GetStyle() [2/2]

Style NanoXLSX.Internal.StyleReaderContainer.GetStyle ( int index,
out bool isDateStyle,
out bool isTimeStyle )

Returns a whole style by its index. It also returns information about the type of the style.

Parameters
indexIndex of the style
isDateStyleOut parameter that indicates whether the style represents a date
isTimeStyleOut parameter that indicates whether the style represents a time
Returns
Style object or null if the component could not be retrieved

Definition at line 98 of file StyleReaderContainer.cs.

Property Documentation

◆ StyleCount

int NanoXLSX.Internal.StyleReaderContainer.StyleCount
get

Gets the number of resolved styles.

Definition at line 38 of file StyleReaderContainer.cs.


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