Festlegen der benutzerdefinierten Hintergrundfarbe einer Excel-Blattzelle mit epplus c #
Das Problem:
Ich benutze EEPlus.
Ich kann keinen Hex-Farbcode anwenden, z.#B7DEE8
, für eine Zelle in meiner Excel-Tabelle.
Ich habe folgenden (Arbeits-) Code:
ws.Cells["A1:B1"].Style.Fill.PatternType = ExcelFillStyle.Solid;
ws.Cells["A1:B1"].Style.Fill.BackgroundColor.SetColor(Color.Gray);
Aber ich brauche so etwas wie folgendes:
ws.Cells["A1:B1"].Style.Fill.BackgroundColor.SetColor("#B7DEE8");
Meine Frage ist also: Ist es möglich, Hex-Farbcodes mit EEPlus zu verwenden? Wenn ja, wie kann ich das machen?