Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.18 KB

calc_sheet.rst

File metadata and controls

59 lines (40 loc) · 1.18 KB

Class CalcSheet

Introduction

The CalcSheet class represents a Calc spreadsheet document.

This class has index access to cells using the [] method. The index can be:

Getting access via cell name

>>> doc.sheets[0]["A2"].get_val()
1.0

Getting access via column and row

Column and row are 0-based indexes.

>>> doc.sheets[0][(0, 1)].get_val()
1.0

Getting access via CellObj

CellObj is 1-based for row.

>>> doc.sheets[0][CellObj("A", 2)].get_val()
1.0

Class Declaration

.. autoclass:: ooodev.calc.CalcSheet
    :members:
    :undoc-members:
    :show-inheritance:
    :inherited-members: