Ejemplo n.º 1
0
        private void BuildChartLegendTabs()
        {
            this.Text = "Chart Legend Properties";

            XmlNode cNode = _Nodes[0];
            XmlNode lNode = _Draw.GetCreateNamedChildNode(cNode, "Legend");

            // Now we replace the node array with a new one containing only the legend
            _Nodes = new List <XmlNode>();
            _Nodes.Add(lNode);

            EnsureStyle();              // Make sure we have Style nodes

            // Chart Legend
            ChartLegendCtl clc = new ChartLegendCtl(_Draw, this._Nodes);

            AddTab("Legend", clc);

            // Style Text
            StyleTextCtl stc = new StyleTextCtl(_Draw, this._Nodes);

            AddTab("Text", stc);

            // Border tab
            StyleBorderCtl bc = new StyleBorderCtl(_Draw, null, this._Nodes);

            AddTab("Border", bc);

            // Style tab
            StyleCtl sc = new StyleCtl(_Draw, this._Nodes);

            AddTab("Style", sc);
        }
Ejemplo n.º 2
0
        private void BuildChartLegendTabs()
        {
            this.Text = "Chart Legend Properties";

            XmlNode cNode = _Nodes[0];
            XmlNode lNode = _Draw.GetCreateNamedChildNode(cNode, "Legend");

            // Now we replace the node array with a new one containing only the legend
            _Nodes = new List<XmlNode>();
            _Nodes.Add(lNode);

            EnsureStyle();	// Make sure we have Style nodes

            // Chart Legend
            ChartLegendCtl clc = new ChartLegendCtl(_Draw, this._Nodes);
            AddTab("Legend", clc);

            // Style Text
            StyleTextCtl stc = new StyleTextCtl(_Draw, this._Nodes);
            AddTab("Text", stc);

            // Border tab
            StyleBorderCtl bc = new StyleBorderCtl(_Draw, null, this._Nodes);
            AddTab("Border", bc);

            // Style tab
            StyleCtl sc = new StyleCtl(_Draw, this._Nodes);
            AddTab("Style", sc);
        }