Esempio n. 1
0
        /// <summary>
        /// Sets the style color for a chart style
        /// </summary>
        /// <param name="isAuto">Is automatic</param>
        /// <param name="index">Is index, maps to the style matrix in the theme</param>
        public void SetStyleColor(bool isAuto = true, int index = 0)
        {
            ColorType = eDrawingColorType.ChartStyleColor;
            ResetColors(NodeName);
            StyleColor = new ExcelChartStyleColor(_nameSpaceManager, _colorNode);

            StyleColor.SetValue(isAuto, index);
        }
Esempio n. 2
0
        internal ExcelChartStyleColorManager(XmlNamespaceManager nameSpaceManager, XmlNode topNode, string path, string[] schemaNodeOrder, Action initMethod = null) :
            base(nameSpaceManager, topNode, path, schemaNodeOrder, initMethod)
        {
            if (_pathNode == null || _colorNode == null)
            {
                return;
            }

            switch (_colorNode.LocalName)
            {
            case "styleClr":
                ColorType  = eDrawingColorType.ChartStyleColor;
                StyleColor = new ExcelChartStyleColor(_nameSpaceManager, _pathNode.FirstChild);
                break;
            }
        }
Esempio n. 3
0
 /// <summary>
 /// Reset the color
 /// </summary>
 /// <param name="newNodeName">The new name</param>
 internal protected new void ResetColors(string newNodeName)
 {
     base.ResetColors(newNodeName);
     StyleColor = null;
 }