|
NanoXLSX.Core 3.0.0-rc.3
|
Class to provide access to the current worksheet with a shortened syntax. More...
Public Member Functions | |
| Shortener (Workbook reference) | |
| Constructor with workbook reference. | |
| void | SetCurrentWorksheet (Worksheet worksheet) |
| Sets the worksheet accessed by the shortener. | |
| void | Value (object cellValue) |
| Sets a value into the current cell and moves the cursor to the next cell (column or row depending on the defined cell direction). | |
| void | Value (object cellValue, Style style) |
| Sets a value with style into the current cell and moves the cursor to the next cell (column or row depending on the defined cell direction). | |
| void | Formula (string cellFormula) |
| Sets a formula into the current cell and moves the cursor to the next cell (column or row depending on the defined cell direction). | |
| void | Formula (string cellFormula, Style style) |
| Sets a formula with style into the current cell and moves the cursor to the next cell (column or row depending on the defined cell direction). | |
| void | Down () |
| Moves the cursor one row down. | |
| void | Down (int numberOfRows, bool keepColumnPosition=false) |
| Moves the cursor the number of defined rows down. | |
| void | Up () |
| Moves the cursor one row up. | |
| void | Up (int numberOfRows, bool keepColumnPosition=false) |
| Moves the cursor the number of defined rows up. | |
| void | Right () |
| Moves the cursor one column to the right. | |
| void | Right (int numberOfColumns, bool keepRowPosition=false) |
| Moves the cursor the number of defined columns to the right. | |
| void | Left () |
| Moves the cursor one column to the left. | |
| void | Left (int numberOfColumns, bool keepRowRowPosition=false) |
| Moves the cursor the number of defined columns to the left. | |
Class to provide access to the current worksheet with a shortened syntax.
Definition at line 18 of file Shortener.cs.
| NanoXLSX.Shortener.Shortener | ( | Workbook | reference | ) |
Constructor with workbook reference.
| reference | Workbook reference |
Definition at line 27 of file Shortener.cs.
| void NanoXLSX.Shortener.Down | ( | ) |
Moves the cursor one row down.
Definition at line 101 of file Shortener.cs.
| void NanoXLSX.Shortener.Down | ( | int | numberOfRows, |
| bool | keepColumnPosition = false ) |
Moves the cursor the number of defined rows down.
| numberOfRows | Number of rows to move |
| keepColumnPosition | If true, the column position is preserved, otherwise set to 0 |
Definition at line 113 of file Shortener.cs.
| void NanoXLSX.Shortener.Formula | ( | string | cellFormula | ) |
Sets a formula into the current cell and moves the cursor to the next cell (column or row depending on the defined cell direction).
| WorksheetException | Throws a WorksheetException if no worksheet was defined |
| cellFormula | Formula to set |
Definition at line 80 of file Shortener.cs.
| void NanoXLSX.Shortener.Formula | ( | string | cellFormula, |
| Style | style ) |
Sets a formula with style into the current cell and moves the cursor to the next cell (column or row depending on the defined cell direction).
| WorksheetException | Throws a WorksheetException if no worksheet was defined |
| cellFormula | Formula to set |
| style | Style to apply |
Definition at line 92 of file Shortener.cs.
| void NanoXLSX.Shortener.Left | ( | ) |
Moves the cursor one column to the left.
Definition at line 165 of file Shortener.cs.
| void NanoXLSX.Shortener.Left | ( | int | numberOfColumns, |
| bool | keepRowRowPosition = false ) |
Moves the cursor the number of defined columns to the left.
| numberOfColumns | Number of columns to move |
| keepRowRowPosition | If true, the row position is preserved, otherwise set to 0 |
Definition at line 177 of file Shortener.cs.
| void NanoXLSX.Shortener.Right | ( | ) |
Moves the cursor one column to the right.
Definition at line 144 of file Shortener.cs.
| void NanoXLSX.Shortener.Right | ( | int | numberOfColumns, |
| bool | keepRowPosition = false ) |
Moves the cursor the number of defined columns to the right.
| numberOfColumns | Number of columns to move |
| keepRowPosition | If true, the row position is preserved, otherwise set to 0 |
Definition at line 155 of file Shortener.cs.
| void NanoXLSX.Shortener.SetCurrentWorksheet | ( | Worksheet | worksheet | ) |
Sets the worksheet accessed by the shortener.
| worksheet | Current worksheet |
Definition at line 37 of file Shortener.cs.
| void NanoXLSX.Shortener.Up | ( | ) |
Moves the cursor one row up.
Definition at line 123 of file Shortener.cs.
| void NanoXLSX.Shortener.Up | ( | int | numberOfRows, |
| bool | keepColumnPosition = false ) |
Moves the cursor the number of defined rows up.
| numberOfRows | Number of rows to move |
| keepColumnPosition | If true, the column position is preserved, otherwise set to 0 |
Definition at line 135 of file Shortener.cs.
| void NanoXLSX.Shortener.Value | ( | object | cellValue | ) |
Sets a value into the current cell and moves the cursor to the next cell (column or row depending on the defined cell direction).
| WorksheetException | Throws a WorksheetException if no worksheet was defined |
| cellValue | Value to set |
Definition at line 57 of file Shortener.cs.
| void NanoXLSX.Shortener.Value | ( | object | cellValue, |
| Style | style ) |
Sets a value with style into the current cell and moves the cursor to the next cell (column or row depending on the defined cell direction).
| WorksheetException | Throws a WorksheetException if no worksheet was defined |
| cellValue | Value to set |
| style | Style to apply |
Definition at line 69 of file Shortener.cs.