Method GetDisplay
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
GetDisplay(CadSpace)
Gets the display list of a space, made on the first call and kept. After an edit, an undo or a redo the list is made again from the one before: the entities the edit's records name, and those that read a layer it switched or recoloured, are drawn anew and every other entity keeps its items, so that moving one line of a drawing of a million entities draws one line, not a million. The list is the one a REGEN would make, item for item; an edit of a table, a block or a setting that redraws everything (LTSCALE, PDMODE) still draws every entity of the spaces it touched.
public DisplayList2 GetDisplay(CadSpace space)
Parameters
spaceCadSpaceThe space.
Returns
- DisplayList2
The items to draw.
Exceptions
- ArgumentNullException
Thrown when the space is null.