Beispiel #1
0
        public static Polyline Polyline(this BaseElement baseElement, params Point[] points)
        {
            var polyline = new Polyline(points);

            baseElement.AddChild(polyline);

            return(polyline);
        }
Beispiel #2
0
        public static GridLegend GridLegend(this BaseElement baseElement, double x, double y)
        {
            var legend = new GridLegend(x, y);

            baseElement.AddChild(legend);

            return(legend);
        }
Beispiel #3
0
        public static Polyline Polyline(this BaseElement baseElement, IEnumerable <Point> points)
        {
            var polyline = new Polyline(points);

            baseElement.AddChild(polyline);

            return(polyline);
        }
Beispiel #4
0
        public static Path Path(this BaseElement baseElement, string commandString)
        {
            var path = new Path(commandString);

            baseElement.AddChild(path);

            return(path);
        }
Beispiel #5
0
        public static Rectangle Rectangle(this BaseElement baseElement, double x, double y, double width, double height)
        {
            var rectangle = new Rectangle(x, y, width, height);

            baseElement.AddChild(rectangle);

            return(rectangle);
        }
Beispiel #6
0
        /// <summary>
        /// Create a multi-line text element
        /// </summary>
        /// <param name="element"></param>
        /// <param name="x"></param>
        /// <param name="y"></param>
        /// <param name="text"></param>
        /// <returns></returns>
        public static MultiLineText MultiLineText(this BaseElement element, double x, double y, string text)
        {
            var textElement = new MultiLineText(x, y, text);

            element.AddChild(textElement);

            return(textElement);
        }
Beispiel #7
0
        public static Path Path(this BaseElement baseElement)
        {
            var path = new Path();

            baseElement.AddChild(path);

            return(path);
        }
Beispiel #8
0
        public static Anchor Anchor(this BaseElement baseElement, string href, string target = null)
        {
            var anchor = new Anchor(href, target);

            baseElement.AddChild(anchor);

            return(anchor);
        }
Beispiel #9
0
        public static Ellipse Ellipse(this BaseElement baseElement, double x, double y, double radiusX, double radiusY)
        {
            var ellipse = new Ellipse(x, y, radiusX, radiusY);

            baseElement.AddChild(ellipse);

            return(ellipse);
        }
Beispiel #10
0
        public static Circle Circle(this BaseElement baseElement, double x, double y, double radius)
        {
            var circle = new Circle(x, y, radius);

            baseElement.AddChild(circle);

            return(circle);
        }
Beispiel #11
0
        public static Line Line(this BaseElement baseElement, double x1, double y1, double x2, double y2)
        {
            var line = new Line(x1, y1, x2, y2);

            baseElement.AddChild(line);

            return(line);
        }
Beispiel #12
0
        public static VerticalBarChart VerticalBarChart(this BaseElement baseElement, double x, double y, double width, double height, BarChartData data)
        {
            var chart = new VerticalBarChart(x, y, width, height, data);

            baseElement.AddChild(chart);

            return(chart);
        }
Beispiel #13
0
        public static Polygon Polygon(this BaseElement baseElement, params Point[] points)
        {
            var polygon = new Polygon(points);

            baseElement.AddChild(polygon);

            return(polygon);
        }
Beispiel #14
0
        public static Polygon Polygon(this BaseElement baseElement, IEnumerable <Point> points)
        {
            var polygon = new Polygon(points);

            baseElement.AddChild(polygon);

            return(polygon);
        }