Ejemplo n.º 1
0
 /// <summary>
 /// Set the color to a scheme color
 /// </summary>
 /// <param name="schemeColor">The scheme color</param>
 public void SetSchemeColor(eSchemeColor schemeColor)
 {
     ColorType = eDrawingColorType.Scheme;
     ResetColors(ExcelDrawingSchemeColor.NodeName);
     SchemeColor = new ExcelDrawingSchemeColor(_nameSpaceManager, _colorNode)
     {
         Color = schemeColor
     };
 }
Ejemplo n.º 2
0
        internal ExcelDrawingColorManager(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 "schemeClr":
                ColorType   = eDrawingColorType.Scheme;
                SchemeColor = new ExcelDrawingSchemeColor(_nameSpaceManager, _colorNode);
                break;
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Reset the colors on the object
 /// </summary>
 /// <param name="newNodeName">The new color new name</param>
 internal new protected void ResetColors(string newNodeName)
 {
     base.ResetColors(newNodeName);
     SchemeColor = null;
 }