Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OdsSheet

OfficeIMO.OpenDocument

Namespace
OfficeIMO.OpenDocument
Assembly
OfficeIMO.OpenDocument
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

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

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 required
categoriesAddress string required
series System.Collections.Generic.IReadOnlyList<OfficeIMO.OpenDocument.OdsChartSeries> required
anchorRow long required
anchorColumn long required
bounds OfficeIMO.OpenDocument.OdfRect required
title string? = null optional
name string? = null optional

Returns

OdsChart
public OdsCell Cell(long row, long column) #

Gets an editable zero-based cell, splitting only the containing row and cell runs.

Parameters

row long required
column long required

Returns

OdsCell
public OdsColumn Column(long column) #

Gets an editable zero-based column definition, creating a sparse definition when needed.

Parameters

column long required

Returns

OdsColumn
public string? GetFormula(long row, long column) #

Reads a formula without splitting or expanding repeat runs.

Parameters

row long required
column long required

Returns

string?
public OdsCellValue GetValue(long row, long column) #

Reads a value without splitting or expanding repeat runs.

Parameters

row long required
column long required
Merge 2 overloads
public 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 required
column long required
rowSpan long required
columnSpan long required

Returns

OdsCell
public OdsCell Merge(long row, long column, long rowSpan, long columnSpan, long maximumMaterializedCells) #

Merges a rectangular cell range under an explicit materialization bound.

Parameters

row long required
column long required
rowSpan long required
columnSpan long required
maximumMaterializedCells long required

Returns

OdsCell
public OdsRow Row(long row) #

Gets an editable zero-based row, splitting its repeat run without expanding it.

Parameters

row long required

Returns

OdsRow

Properties

public string Name { get; set; } #

Worksheet name.

public bool Hidden { get; set; } #

Whether the sheet is hidden.

public IReadOnlyList<OdsChart> Charts { get; } #

Embedded charts whose chart content can be read safely from this package.

public string? PrintRanges { get; set; } #

Optional ODF print range expression.

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.

Fields

public const long DefaultMaximumMergeCells #

Default maximum number of cells that one merge operation may materialize.

Value: 100000
public const int DefaultMaximumChartFrames #

Maximum number of embedded chart frames projected from one sheet.

Value: 256