コード例 #1
0
        public override GraphicsBase CreateGraphics()
        {
            GraphicsBase b = new GraphicsRuler(start, end, lineWidth, objectColor, actualScale, layer, page, reportContent, reporter, reportDate);

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

            return(b);
        }
コード例 #2
0
        public PropertiesGraphicsRuler(GraphicsRuler ruler)
        {
            if (ruler == null)
            {
                throw new ArgumentNullException("ruler");
            }

            start       = ruler.Start;
            end         = ruler.End;
            lineWidth   = ruler.LineWidth;
            objectColor = ruler.ObjectColor;
            actualScale = ruler.ActualScale;
            ID          = ruler.Id;
            selected    = ruler.IsSelected;

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

            this.reportContent = ruler.ReportContent;
            this.reporter      = ruler.Reporter;
            this.reportDate    = ruler.ReportDate;
        }