如何将单元格或区域的颜色设置为透明?

How to set the color of a cell or range to transparent?

我知道如何将颜色设置为红色,例如:

row.Interior.Color = Color.FromArgb(255, 0, 0);

但是如何设置背景为透明呢?

可以使用 System.Drawing.Color 而不是 Spreadsheetgear.Drawing.Color 来完成:

row.Interior.Color = System.Drawing.Color.Transparent;