OdsSheet
OfficeIMO.OpenDocument
An XML-backed ODS worksheet with sparse repeat-run editing.
Inheritance
- object
- OdsSheet
Usage
Explore 3 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 3
- Method OdsDocument.AddSheet
- Method OdsDocument.GetSheet
- Property OdsDocument.Sheets
Methods
public OdsChart AddChart(OdsChartType type, string categoriesAddress, IReadOnlyList<OdsChartSeries> series, long anchorRow, long anchorColumn, OdfRect bounds, string? title = null, string? name = null) #Adds a bounded chart linked to existing ODS cells and anchored in this sheet.
Parameters
- type OfficeIMO.OpenDocument.OdsChartType
- categoriesAddress string
- series System.Collections.Generic.IReadOnlyList<OfficeIMO.OpenDocument.OdsChartSeries>
- anchorRow long
- anchorColumn long
- bounds OfficeIMO.OpenDocument.OdfRect
- title string? = null
- name string? = null
Returns
OdsChartpublic OdsCell Cell(long row, long column) #Gets an editable zero-based cell, splitting only the containing row and cell runs.
Parameters
- row long
- column long
Returns
OdsCellpublic OdsColumn Column(long column) #Gets an editable zero-based column definition, creating a sparse definition when needed.
Parameters
- column long
Returns
OdsColumnpublic string? GetFormula(long row, long column) #Reads a formula without splitting or expanding repeat runs.
Parameters
- row long
- column long
Returns
string?public OdsCellValue GetValue(long row, long column) #Reads a value without splitting or expanding repeat runs.
Parameters
- row long
- column long
Returns
OdsCellValuepublic OdsCell Merge(long row, long column, long rowSpan, long columnSpan) #Merges a rectangular cell range and marks non-anchor positions as covered cells.
Parameters
- row long
- column long
- rowSpan long
- columnSpan long
Returns
OdsCellInherited Methods
Properties
public IReadOnlyList<OdsChart> Charts { get; } #Embedded charts whose chart content can be read safely from this package.
public IReadOnlyList<OdsRowRun> RowRuns { get; } #Sparse row runs without expanding table:number-rows-repeated.
public IReadOnlyList<OdsColumnRun> ColumnRuns { get; } #Sparse column definition runs without expanding repeats.
public long RowCount { get; } #Logical row count represented by the sparse run model.
public OdsUsedRange? UsedRange { get; } #Smallest rectangle containing cells with a value, formula, or text.