Writer extension methods for the Workbook class.
More...
Writer extension methods for the Workbook class.
Definition at line 20 of file WorkbookExtensions.cs.
◆ AddExternalLink() [1/2]
| void NanoXLSX.Extensions.WorkbookExtensions.AddExternalLink |
( |
this Workbook | workbook, |
|
|
ExternalLink | externalLink ) |
|
static |
Adds an external link to the workbook.
- Parameters
-
| workbook | Workbook instance |
| externalLink | External link object to add |
- Exceptions
-
| ArgumentNullException | Thrown if the external link object was null |
Definition at line 28 of file WorkbookExtensions.cs.
◆ AddExternalLink() [2/2]
Adds an external link to the workbook, using a builder.
- Parameters
-
| workbook | Workbook instance |
| builder | |
- Returns
- Returns the created and added external link
- Exceptions
-
| ArgumentNullException | Thrown if the builder was null |
Definition at line 51 of file WorkbookExtensions.cs.
◆ ClearExternalLinks()
| void NanoXLSX.Extensions.WorkbookExtensions.ClearExternalLinks |
( |
this Workbook | workbook | ) |
|
|
static |
Removes all external links from the workbook.
- Parameters
-
| workbook | Workbook instance |
Definition at line 87 of file WorkbookExtensions.cs.
◆ GetExternalLinks()
| IReadOnlyList< ExternalLink > NanoXLSX.Extensions.WorkbookExtensions.GetExternalLinks |
( |
this Workbook | workbook | ) |
|
|
static |
Gets all external links of the workbook.
- Parameters
-
| workbook | Workbook instance |
- Returns
- Returns a read-only list of external links, or an empty list, if none are defined in the workbook
Definition at line 67 of file WorkbookExtensions.cs.
◆ RemoveExternalLink()
| bool NanoXLSX.Extensions.WorkbookExtensions.RemoveExternalLink |
( |
this Workbook | workbook, |
|
|
ExternalLink | externalLink ) |
|
static |
Removes a specific external link from the workbook.
- Parameters
-
| workbook | Workbook instance |
| externalLink | Object to remove |
- Returns
- Returns true if successfully deleted, otherwise false
Definition at line 78 of file WorkbookExtensions.cs.
The documentation for this class was generated from the following file: