EPPlus how to set default cell border colour

T.Zacks 3,986 Reputation points
2021-08-26T14:14:39.657+00:00

See my picture and there is a cell A3 which has no top border. when i set top border but still getting no border. so curious to know how to set top border with default color.

126756-wsaa.png

ws.Cells["A3"].Style.Border.Top.Style = ExcelBorderStyle.Thin;  
ws.Cells["A3"].Style.Border.Bottom.Color.SetColor(System.Drawing.Color.Transparent);  

here i set Color.Transparent. i like to know what i need to set default border colour ?

I have to set default border colour for top border for A3 cell. please suggest me something.

Thanks

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,467 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 49,701 Reputation points
    2021-08-26T14:36:04.503+00:00

    This question is really related to a third party library and not MS products or C#. I think you should post it in Github where the owners of the software can respond.

    0 comments No comments