Table of Contents

DisplayStyle

from OpenCAD2D import DisplayStyle

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

How a display item is drawn: its colour, its line weight and its dashes, all resolved from the entity, its layer and its block.

Constructors

__init__

.NET

def __init__(self, rgb: int, lineWeight: float, dashes: Sequence[float] | System.Array[float]) -> None

Makes a style.

Properties and fields

Dashes

.NET

@property
def Dashes(self) -> System.Array[float] | None

Gets the dash pattern in drawing units, or null for a continuous line.

LineWeight

.NET

@property
def LineWeight(self) -> float

Gets the line weight in millimetres, nought for the thinnest line.

Rgb

.NET

@property
def Rgb(self) -> int

Gets the colour as 0xRRGGBB.