Ejemplo n.º 1
0
        private void CreateElement(SvgRoot svg)
        {
            XmlElement = svg.CreateElement("path");

            _d           = svg.CreateAttribute("d");
            _stroke      = svg.CreateAttribute("stroke");
            _strokeWidth = svg.CreateAttribute("stroke-width");

            XmlElement.Attributes.Append(_d);
            XmlElement.Attributes.Append(_stroke);
            XmlElement.Attributes.Append(_strokeWidth);
        }
Ejemplo n.º 2
0
        private void CreateElement(SvgRoot svg)
        {
            XmlElement = svg.CreateElement("path");

            _d = svg.CreateAttribute("d");
            _stroke = svg.CreateAttribute("stroke");
            _strokeWidth = svg.CreateAttribute("stroke-width");

            XmlElement.Attributes.Append(_d);
            XmlElement.Attributes.Append(_stroke);
            XmlElement.Attributes.Append(_strokeWidth);
        }
Ejemplo n.º 3
0
        private void CreateElement(SvgRoot svg)
        {
            XmlElement = svg.CreateElement("polygon");

            _points = svg.CreateAttribute("points");
            _fill = svg.CreateAttribute("fill");
            _stroke = svg.CreateAttribute("stroke");
            _strokeWidth = svg.CreateAttribute("stroke-width");

            XmlElement.Attributes.Append(_points);
            XmlElement.Attributes.Append(_fill);
            XmlElement.Attributes.Append(_stroke);
            XmlElement.Attributes.Append(_strokeWidth);
        }
Ejemplo n.º 4
0
        private void CreateElement(SvgRoot svg)
        {
            XmlElement = svg.CreateElement("polygon");

            _points      = svg.CreateAttribute("points");
            _fill        = svg.CreateAttribute("fill");
            _stroke      = svg.CreateAttribute("stroke");
            _strokeWidth = svg.CreateAttribute("stroke-width");

            XmlElement.Attributes.Append(_points);
            XmlElement.Attributes.Append(_fill);
            XmlElement.Attributes.Append(_stroke);
            XmlElement.Attributes.Append(_strokeWidth);
        }
Ejemplo n.º 5
0
        private void CreateElement(SvgRoot svg)
        {
            XmlElement = svg.CreateElement("a");
            _href      = svg.CreateAttribute("href", "xlink");

            XmlElement.Attributes.Append(_href);
            XmlElement.AppendChild(Text.XmlElement);
        }
Ejemplo n.º 6
0
        private void CreateElement(SvgRoot svg)
        {
            XmlElement = svg.CreateElement("a");
            _href = svg.CreateAttribute("href", "xlink");

            XmlElement.Attributes.Append(_href);
            XmlElement.AppendChild(Text.XmlElement);
        }
Ejemplo n.º 7
0
        private void CreateElement(SvgRoot svg)
        {
            XmlElement = svg.CreateElement("text");

            _x           = svg.CreateAttribute("x");
            _y           = svg.CreateAttribute("y");
            _fill        = svg.CreateAttribute("fill");
            _style       = svg.CreateAttribute("style");
            _textAnchor  = svg.CreateAttribute("text-anchor");
            _fontFamily  = svg.CreateAttribute("font-family");
            _fontSize    = svg.CreateAttribute("font-size");
            _onMouseOver = svg.CreateAttribute("onmouseover");
            _onMouseOut  = svg.CreateAttribute("onmouseout");

            XmlElement.Attributes.Append(_x);
            XmlElement.Attributes.Append(_y);
            XmlElement.Attributes.Append(_fill);
            XmlElement.Attributes.Append(_style);
            XmlElement.Attributes.Append(_textAnchor);
            XmlElement.Attributes.Append(_fontFamily);
            XmlElement.Attributes.Append(_fontSize);
            XmlElement.Attributes.Append(_onMouseOver);
            XmlElement.Attributes.Append(_onMouseOut);
        }
Ejemplo n.º 8
0
        private void CreateElement(SvgRoot svg)
        {
            XmlElement = svg.CreateElement("text");

            _x = svg.CreateAttribute("x");
            _y = svg.CreateAttribute("y");
            _fill = svg.CreateAttribute("fill");
            _style = svg.CreateAttribute("style");
            _textAnchor = svg.CreateAttribute("text-anchor");
            _fontFamily = svg.CreateAttribute("font-family");
            _fontSize = svg.CreateAttribute("font-size");
            _onMouseOver = svg.CreateAttribute("onmouseover");
            _onMouseOut = svg.CreateAttribute("onmouseout");

            XmlElement.Attributes.Append(_x);
            XmlElement.Attributes.Append(_y);
            XmlElement.Attributes.Append(_fill);
            XmlElement.Attributes.Append(_style);
            XmlElement.Attributes.Append(_textAnchor);
            XmlElement.Attributes.Append(_fontFamily);
            XmlElement.Attributes.Append(_fontSize);
            XmlElement.Attributes.Append(_onMouseOver);
            XmlElement.Attributes.Append(_onMouseOut);
        }
Ejemplo n.º 9
0
        private void CreateElement(SvgRoot svg)
        {
            XmlElement = svg.CreateElement("rect");

            _height      = svg.CreateAttribute("height");
            _width       = svg.CreateAttribute("width");
            _x           = svg.CreateAttribute("x");
            _y           = svg.CreateAttribute("y");
            _fill        = svg.CreateAttribute("fill");
            _stroke      = svg.CreateAttribute("stroke");
            _strokeWidth = svg.CreateAttribute("stroke-width");

            XmlElement.Attributes.Append(_height);
            XmlElement.Attributes.Append(_width);
            XmlElement.Attributes.Append(_x);
            XmlElement.Attributes.Append(_y);
            XmlElement.Attributes.Append(_fill);
            XmlElement.Attributes.Append(_stroke);
            XmlElement.Attributes.Append(_strokeWidth);
        }
Ejemplo n.º 10
0
        private void CreateElement(SvgRoot svg)
        {
            XmlElement = svg.CreateElement("rect");

            _height = svg.CreateAttribute("height");
            _width = svg.CreateAttribute("width");
            _x = svg.CreateAttribute("x");
            _y = svg.CreateAttribute("y");
            _fill = svg.CreateAttribute("fill");
            _stroke = svg.CreateAttribute("stroke");
            _strokeWidth = svg.CreateAttribute("stroke-width");

            XmlElement.Attributes.Append(_height);
            XmlElement.Attributes.Append(_width);
            XmlElement.Attributes.Append(_x);
            XmlElement.Attributes.Append(_y);
            XmlElement.Attributes.Append(_fill);
            XmlElement.Attributes.Append(_stroke);
            XmlElement.Attributes.Append(_strokeWidth);
        }
Ejemplo n.º 11
0
        private void CreateElement(SvgRoot svg)
        {
            XmlElement = svg.CreateElement("image");

            _width  = svg.CreateAttribute("width");
            _height = svg.CreateAttribute("height");
            _x      = svg.CreateAttribute("x");
            _y      = svg.CreateAttribute("y");
            _preserveAspectRatio = svg.CreateAttribute("preserveAspectRatio");
            _href = svg.CreateAttribute("href", "xlink");

            XmlElement.Attributes.Append(_width);
            XmlElement.Attributes.Append(_height);
            XmlElement.Attributes.Append(_x);
            XmlElement.Attributes.Append(_y);
            XmlElement.Attributes.Append(_preserveAspectRatio);
            XmlElement.Attributes.Append(_href);
        }
Ejemplo n.º 12
0
        private void CreateElement(SvgRoot svg)
        {
            XmlElement = svg.CreateElement("image");

            _width = svg.CreateAttribute("width");
            _height = svg.CreateAttribute("height");
            _x = svg.CreateAttribute("x");
            _y = svg.CreateAttribute("y");
            _preserveAspectRatio = svg.CreateAttribute("preserveAspectRatio");
            _href = svg.CreateAttribute("href", "xlink");

            XmlElement.Attributes.Append(_width);
            XmlElement.Attributes.Append(_height);
            XmlElement.Attributes.Append(_x);
            XmlElement.Attributes.Append(_y);
            XmlElement.Attributes.Append(_preserveAspectRatio);
            XmlElement.Attributes.Append(_href);
        }