Class SheetsTable
- Namespace
- SunamoGoogleSheets
- Assembly
- SunamoGoogleSheets.dll
Represents a table parsed from Google Sheets with support for sections
public class SheetsTable
- Inheritance
-
SheetsTable
- Inherited Members
- Extension Methods
Constructors
SheetsTable(ILogger)
Represents a table parsed from Google Sheets with support for sections
public SheetsTable(ILogger logger)
Parameters
loggerILogger
Properties
ColumnCount
Gets the number of columns in the table
public int ColumnCount { get; }
Property Value
RowsCount
Gets the number of rows in the table
public int RowsCount { get; }
Property Value
SectionRanges
Gets the section ranges (from-to) for each section identified by section name
public Dictionary<string, FromToTGoogleSheets<int>> SectionRanges { get; }
Property Value
Table
Gets the parsed data table
public DataTable Table { get; }
Property Value
Methods
DeleteColumn(int)
Deletes a column from the table at the specified index
public void DeleteColumn(int columnIndex)
Parameters
columnIndexintThe zero-based index of the column to delete
ParseRows(string)
Parses rows from Google Sheets clipboard format into the table
public void ParseRows(string input)
Parameters
inputstringThe text content from Google Sheets clipboard
ParseRowsOfSections(string)
Parses rows and identifies sections (sections are identified by a colon at the end of the first cell) Returns rows that belong to each section
public void ParseRowsOfSections(string input)
Parameters
inputstringThe text content from Google Sheets clipboard
RowsFromColumn(int, FromToTGoogleSheets<int>?)
Returns values from a specific column, optionally filtered to a specific section
public List<string> RowsFromColumn(int columnIndex, FromToTGoogleSheets<int>? sectionRange = null)
Parameters
columnIndexintThe zero-based index of the column to retrieve values from
sectionRangeFromToTGoogleSheets<int>Optional section range to filter rows; if null, returns all rows