Free cookie consent management tool by TermsFeed Policy Generator

source: branches/ExportSymbolicDataAnalysisSolutions/HeuristicLab.ExtLibs/HeuristicLab.EPPlus/3.1.3/EPPlus-3.1.3/Style/Dxf/ExcelDxfColor.cs @ 9580

Last change on this file since 9580 was 9580, checked in by sforsten, 11 years ago

#1730:

  • added SymbolicDataAnalysisExpressionExcelFormatter
  • changed modifiers in SymbolicExpressionTreeChart of methods SaveImageAsBitmap and SaveImageAsEmf to public
  • added menu item ExportSymbolicSolutionToExcelMenuItem to export a symbolic solution to an excel file
  • added EPPlus-3.1.3 to ExtLibs
File size: 1.5 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Drawing;
6using System.Xml;
7
8namespace OfficeOpenXml.Style.Dxf
9{
10    public class ExcelDxfColor : DxfStyleBase<ExcelDxfColor>
11
12    {
13        public ExcelDxfColor(ExcelStyles styles) : base(styles)
14        {
15
16        }
17        public int? Theme { get; set; }
18        public int? Index { get; set; }
19        public bool? Auto { get; set; }
20        public double? Tint { get; set; }
21        public Color? Color { get; set; }
22        protected internal override string Id
23        {
24            get { return GetAsString(Theme) + "|" + GetAsString(Index) + "|" + GetAsString(Auto) + "|" + GetAsString(Tint) + "|" + GetAsString(Color==null ? "" : ((Color)Color.Value).ToArgb().ToString("x")); }
25        }
26        protected internal override ExcelDxfColor Clone()
27        {
28            return new ExcelDxfColor(_styles) { Theme = Theme, Index = Index, Color = Color, Auto = Auto, Tint = Tint };
29        }
30        protected internal override bool HasValue
31        {
32            get
33            {
34                return Theme != null ||
35                       Index != null ||
36                       Auto != null ||
37                       Tint != null ||
38                       Color != null;
39            }
40        }
41        protected internal override void CreateNodes(XmlHelper helper, string path)
42        {
43            throw new NotImplementedException();
44        }
45    }
46}
Note: See TracBrowser for help on using the repository browser.