CadSheet
from OpenCAD2D import CadSheet
class CadSheet(System.Object) ยท CadSheet in the .NET reference
A block of spreadsheet cells, a sheet or a range of one, as a data link reads it: its rows and columns, from the first cell of the block, and what each holds. A row shorter than the widest reads as empty beyond its end.
Constructors
__init__
def __init__(self, name: str) -> None
Makes a sheet.
Properties and fields
ColumnCount
@property
def ColumnCount(self) -> int
Gets the number of columns: those of the widest row.
Name
@property
def Name(self) -> str
Gets the name of the sheet.
RowCount
@property
def RowCount(self) -> int
Gets the number of rows.
Methods
Cut
def Cut(self, range: CadSheetRange) -> CadSheet
Gives a block of the sheet, as a data link's range cuts one: its rows and columns, an end below nought meaning the sheet's last row or column.
Set
def Set(self, row: int, column: int, cell: CadSheetCell) -> None
Puts a cell, the sheet growing to hold it.
Operators and Python protocols
__getitem__
def __getitem__(self, row: int, column: int) -> CadSheetCell
Gets the cell at a row and a column, from nought; an empty cell where the sheet has none there.