Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.1 KB

spreadsheet_draw_page.rst

File metadata and controls

42 lines (29 loc) · 1.1 KB

Class SpreadsheetDrawPage

Introduction

The SpreadsheetDrawPage class is for accessing the draw page of a spreadsheet document.

This class has a forms property that gives access to :ref:`ooodev.calc.CalcForm` which in turn gives access to :ref:`ooodev.calc.CalcForms` that represents a form in the spreadsheet document.

Adding a shape to a sheet

The SpreadsheetDrawPage class has many methods for adding shapes to a sheet.

Here is an example of adding a rectangle to a sheet.

>>> doc = CalcDoc(Calc.create_doc(loader))
>>> sheet = doc.sheets[0]
>>> rect = sheet.draw_page.draw_rectangle(x=100, y=10, width=50, height=20)
>>> rect
<ooodev.draw.shapes.rectangle_shape.RectangleShape object at 0x000001B636EA3490>

Class Declaration

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