Пример #1
0
 public RectangleShape(RectangleShape rectangle)
     : base(rectangle)
 {
 }
Пример #2
0
        private RectangleShape CreateFrame(Shape shape)
        {
            RectangleF rect = shape.Rectangle;
            byte frameOffset = 5;
            float frameMargin = shape.LineWidth / 2 + frameOffset;
            rect.Inflate(frameMargin, frameMargin);

            RectangleShape frame = new RectangleShape(rect);
            frame.LineWidth = 2;
            frame.LineColor = Color.Black;
            frame.Transparency = 0;
            return frame;
        }
Пример #3
0
 private void rectangleToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ShapeToDraw       = new RectangleShape();
     shapeButton.Image = rectangleButton.Image;
 }
Пример #4
0
 public GroupShape(RectangleShape rectangle) : base(rectangle)
 {
 }
Пример #5
0
 public RectangleShape(RectangleShape rectangle)
     : base(rectangle)
 {
 }
Пример #6
0
 public ElipseShape(RectangleShape rectangle) : base(rectangle)
 {
 }