Beispiel #1
0
        public PropertiesGraphicsEllipse(GraphicsEllipse ellipse)
        {
            if (ellipse == null)
            {
                throw new ArgumentNullException("ellipse");
            }

            this.left   = ellipse.Left;
            this.top    = ellipse.Top;
            this.right  = ellipse.Right;
            this.bottom = ellipse.Bottom;

            this.lineWidth   = ellipse.LineWidth;
            this.objectColor = ellipse.ObjectColor;
            this.actualScale = ellipse.ActualScale;
            this.ID          = ellipse.Id;
            this.selected    = ellipse.IsSelected;

            this.layer = ellipse.Layer;
            this.page  = ellipse.Page;

            this.reportContent = ellipse.ReportContent;
            this.reporter      = ellipse.Reporter;
            this.reportDate    = ellipse.ReportDate;
        }
        public override GraphicsBase CreateGraphics()
        {
            GraphicsBase b = new GraphicsEllipse(left, top, right, bottom, lineWidth, lineStyle, objectColor, actualScale);

            if (this.ID != 0)
            {
                b.Id         = this.ID;
                b.IsSelected = this.selected;
            }

            return(b);
        }
Beispiel #3
0
        public override GraphicsBase CreateGraphics()
        {
            GraphicsBase b = new GraphicsEllipse(left, top, right, bottom, lineWidth,
                                                 objectColor, actualScale, layer, page, reportContent, reporter, reportDate);

            if (this.ID != 0)
            {
                b.Id         = this.ID;
                b.IsSelected = this.selected;
            }

            return(b);
        }
        public PropertiesGraphicsEllipse(GraphicsEllipse ellipse)
        {
            if (ellipse == null)
            {
                throw new ArgumentNullException("ellipse");
            }

            left   = ellipse.Left;
            top    = ellipse.Top;
            right  = ellipse.Right;
            bottom = ellipse.Bottom;

            lineWidth   = ellipse.LineWidth;
            objectColor = ellipse.ObjectColor;
            actualScale = ellipse.ActualScale;
            ID          = ellipse.Id;
            selected    = ellipse.IsSelected;
        }