Table of Contents

CadSelectionKind

from OpenCAD2D import CadSelectionKind

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

One row of the list the selection box of the Properties panel drops down: all the objects selected, or those of one kind among them. Seven objects, five MTEXTs and two OLE frames, give "All (7)", "MText (5)" and "OLE Object (2)".

Constructors

__init__

.NET

def __init__(self, name: str, label: str, handles: System.Collections.Generic.IReadOnlyList[str]) -> None

Makes a row.

Properties and fields

Count

.NET

@property
def Count(self) -> int

Gets how many objects the row holds.

Handles

.NET

@property
def Handles(self) -> System.Collections.Generic.IReadOnlyList[str]

Gets the handles of the objects of the row, in order, those the Properties panel then shows and edits.

Label

.NET

@property
def Label(self) -> str

Gets the text of the row, as the selection box reads where the row is chosen.

Name

.NET

@property
def Name(self) -> str | None

Gets the kind's name, "MText" or "Line"; null for the row of the whole selection.

Methods

ToString

.NET

def ToString(self) -> str