Class DisplayPolyline2
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
A chain of straight segments, open or closed: a LINE, a polyline, a flattened spline or ellipse.
public sealed class DisplayPolyline2 : DisplayItem2
- Inheritance
-
DisplayPolyline2
- Inherited Members
Constructors
Properties
- Bounds
Gets the box that holds the item.
- Closed
Gets whether the last vertex joins the first.
- Count
Gets the number of vertices.
- IsSampled
Gets whether the vertices are samples along a curve (an ellipse, a spline, an arc drawn under a skew) rather than corners of the entity, so that object snaps take only the chain's two ends as endpoints and none of its midpoints.
- Xy
Gets the vertices as X and Y in turn. A chain of two keeps no list of them, so each ask makes one: ask once and read it.
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.
- Touches(DisplayBox)
Gets whether any part of the item touches a box, as a crossing selection asks.