API Reference
Class
SheetIndex
Convenience helpers for creating a navigable index (Table of Contents) sheet and wiring back-links across the workbook. Thin wrapper over ExcelDocument APIs.
Inheritance
- Object
- SheetIndex
Methods
public static Void Add(ExcelDocument workbook, String sheetName = "TOC", Boolean placeFirst = true, Boolean includeNamedRanges = false, Boolean includeHiddenNamedRanges = false) #Returns:
VoidAdds a styled Table of Contents sheet with hyperlinks to each sheet.
Parameters
- workbook OfficeIMO.Excel.ExcelDocument
- Target workbook.
- sheetName System.String = "TOC"
- Name of the TOC sheet. Default: "TOC".
- placeFirst System.Boolean = true
- Move TOC to the first position. Default: true.
- includeNamedRanges System.Boolean = false
- Whether to add a column listing named ranges per sheet.
- includeHiddenNamedRanges System.Boolean = false
- Include hidden named ranges in the listing.
public static Void AddBackLinks(ExcelDocument workbook, String tocSheetName = "TOC", Int32 row = 2, Int32 col = 1, String text = "← TOC") #Returns:
VoidAdds a small back-link (e.g., "← TOC") at the given cell on every non-TOC sheet.
Parameters
- workbook OfficeIMO.Excel.ExcelDocument
- tocSheetName System.String = "TOC"
- row System.Int32 = 2
- col System.Int32 = 1
- text System.String = "← TOC"
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object