Table of Contents

CadSheetRange

from OpenCAD2D import CadSheetRange

class CadSheetRange(System.Object) ยท CadSheetRange in the .NET reference

A range of cells in the words of a spreadsheet: A1:D10 a block, B2 one cell, A:A a whole column, A:D a set of columns. Rows and columns count from nought; an end below nought is the sheet's own end.

Constructors

__init__

.NET

def __init__(self, topRow: int, leftColumn: int, bottomRow: int, rightColumn: int) -> None

Makes a range.

Properties and fields

BottomRow

.NET

@property
def BottomRow(self) -> int

Gets the last row, from nought; below nought for the sheet's last.

Everything

.NET

Everything: ClassVar[CadSheetRange]

Gets the range of the whole sheet.

LeftColumn

.NET

@property
def LeftColumn(self) -> int

Gets the first column, from nought.

RightColumn

.NET

@property
def RightColumn(self) -> int

Gets the last column, from nought; below nought for the sheet's last.

TopRow

.NET

@property
def TopRow(self) -> int

Gets the first row, from nought.

Methods

ColumnName

.NET

@staticmethod
def ColumnName(column: int) -> str

The name of a column, A for nought, Z for 25, AA for 26.

ToString

.NET

def ToString(self) -> str

Gives the range in a spreadsheet's words, A1:D10; A:D where it takes whole columns.

TryParse

.NET

@staticmethod
def TryParse(text: str) -> tuple[bool, CadSheetRange]

Reads a range: A1:D10, $A$1:$D$10, B2, A:A or A:D, letters of either case, the two ends in either order.