Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.EPPlus/4.0.3/EPPlus-4.0.3/Style/Dxf/ExcelDxfColor.cs @ 12074

Last change on this file since 12074 was 12074, checked in by sraggl, 9 years ago

#2341: Added EPPlus-4.0.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.