internal void FromExcel2010Color(X14.Color clr) { SetAllNull(); if (clr.Auto != null) { Auto = clr.Auto.Value; } if (clr.Indexed != null) { Indexed = clr.Indexed.Value; } if (clr.Rgb != null) { Rgb = clr.Rgb.Value; } if (clr.Theme != null) { Theme = clr.Theme.Value; } if (clr.Tint != null) { Tint = clr.Tint.Value; } SetDisplayColor(); }
internal X14.Color ToExcel2010Color() { var clr = new X14.Color(); if (Auto != null) { clr.Auto = Auto.Value; } if (Indexed != null) { clr.Indexed = Indexed.Value; } if (Rgb != null) { clr.Rgb = new HexBinaryValue(Rgb); } if (Theme != null) { clr.Theme = Theme.Value; } if ((Tint != null) && (Tint.Value != 0.0)) { clr.Tint = Tint.Value; } return(clr); }