DisplayList2
from OpenCAD2D import DisplayList2
class DisplayList2(System.Object) ยท DisplayList2 in the .NET reference
What one space of a drawing, model space or a layout, is drawn as: its items in drawing order, the box that holds them, and the layers they sit on. It is made once from the entities and kept until one changes.
Constructors
__init__
def __init__(self) -> None
Makes an empty list.
Properties and fields
Bounds
@property
def Bounds(self) -> DisplayBox
Gets the box that holds every item, of a DisplayRay2 its base point alone, as AutoCAD's ZOOM Extents takes an XLINE or a RAY: a line 100 by 50 from the origin and an XLINE through (200, 300) are held from (0, 0) to (200, 300).
Count
@property
def Count(self) -> int
Gets the number of items.
Items
@property
def Items(self) -> System.Collections.Generic.IReadOnlyList[DisplayItem2]
Gets the items in the order they are drawn, the first at the back.
Methods
Add
def Add(self, item: DisplayItem2) -> None
Adds an item at the front.