Class DisplayItem2
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
One thing the canvas draws: a chain of segments, an arc, a fill, or a piece of text, in drawing coordinates, with the entity it came from.
public abstract class DisplayItem2
- Inheritance
-
DisplayItem2
- Derived
- Inherited Members
Constructors
- DisplayItem2(DisplayStyle, string, string)
Makes the base of an item.
Properties
- BlockClip
Gets the part of the plane the item is shown in where the block reference it came from is clipped (XCLIP), or one it stands in is; null for an item that is shown whole. The canvas draws only what is inside it.
- Bounds
Gets the box that holds the item.
- Handle
Gets the handle of the entity the item came from; an entity inside a block gives the handle of the outermost INSERT.
- IsClipFrame
Gets whether the item is the frame of a clip boundary (XCLIP), which is drawn over what the reference shows and not clipped by it.
- IsNotPlotted
Gets whether the frame of a clip boundary is left out of a plot, as XCLIPFRAME 2 leaves it.
- Layer
Gets the layer the item is drawn on.
- Style
Gets how the item is drawn.
Methods
- DistanceTo(double, double)
Gets the distance from a point to the item, the shortest to any part that is drawn; the distance to the nearest edge for a fill, nought inside it.
- IsInside(DisplayBox)
Gets whether the item lies wholly inside a box, as a window selection asks.
- Touches(DisplayBox)
Gets whether any part of the item touches a box, as a crossing selection asks.