コード例 #1
0
        public override void PaintGhostLine(MultiPointType curveType, Point[] points)
        {
            switch (curveType)
            {
            case MultiPointType.Straight:
                Ghost = GhostsFactory.GetGhost(points, GhostTypes.MultiLine);
                break;

            case MultiPointType.Polygon:
                Ghost = GhostsFactory.GetGhost(points, GhostTypes.Polygon);
                break;

            case MultiPointType.Curve:
                Ghost = GhostsFactory.GetGhost(points, GhostTypes.CurvedLine);
                break;
            }
        }
コード例 #2
0
 public override void PaintGhostLine(Point ltPoint, Point rbPoint)
 {
     Ghost = GhostsFactory.GetGhost(new Point[] { ltPoint, rbPoint }, GhostTypes.Line);
 }