예제 #1
0
        public override List <ShapeAnchor> GetAnchors()
        {
            Size szAnchor = new Size(anchorWidthHeight, anchorWidthHeight);

            return(new List <ShapeAnchor>()
            {
                new ShapeAnchor(GripType.Start, new Rectangle(ZoomStartPoint.Move(-anchorWidthHeight / 2, -anchorWidthHeight / 2), szAnchor), Cursors.Arrow),
                new ShapeAnchor(GripType.End, new Rectangle(ZoomEndPoint.Move(-anchorWidthHeight / 2, -anchorWidthHeight / 2), szAnchor), Cursors.Arrow),
            });
        }
예제 #2
0
        public override List <ShapeAnchor> GetAnchors()
        {
            Size      szAnchor = new Size(anchorWidthHeight, anchorWidthHeight);
            Rectangle hline    = GetHorizontalLineRectangle();

            return(new List <ShapeAnchor>()
            {
                new ShapeAnchor(GripType.Start, new Rectangle(ZoomStartPoint.Move(-anchorWidthHeight / 2, -anchorWidthHeight / 2), szAnchor), Cursors.Arrow),
                new ShapeAnchor(GripType.End, new Rectangle(ZoomEndPoint.Move(-anchorWidthHeight / 2, -anchorWidthHeight / 2), szAnchor), Cursors.Arrow),
                new ShapeAnchor(GripType.TopMiddle, new Rectangle(new Point(hline.X + hline.Width / 2 - szAnchor.Width / 2, hline.Y + szAnchor.Height), szAnchor), Cursors.SizeNS),
            });
        }
예제 #3
0
        public override List <ShapeAnchor> GetAnchors()
        {
            Size      szAnchor = new Size(anchorWidthHeight, anchorWidthHeight);
            Rectangle vline    = GetVerticalLineRectangle();

            return(new List <ShapeAnchor>()
            {
                new ShapeAnchor(GripType.Start, new Rectangle(ZoomStartPoint.Move(-anchorWidthHeight / 2, -anchorWidthHeight / 2), szAnchor), Cursors.Arrow),
                new ShapeAnchor(GripType.End, new Rectangle(ZoomEndPoint.Move(-anchorWidthHeight / 2, -anchorWidthHeight / 2), szAnchor), Cursors.Arrow),
                new ShapeAnchor(GripType.LeftMiddle, new Rectangle(new Point(vline.X + szAnchor.Width, vline.Y + vline.Height / 2 - szAnchor.Height / 2), szAnchor), Cursors.SizeWE),
            });
        }