hi,
i added a shape, for example a rect, and i can set the fill style. but how can i set the border style of the rect that i created, for example color and line style?
thanks.
Workbook workbook = new Workbook();
Worksheet sheet = workbook.Worksheets[0];
//Add a rect shape
IPrstGeomShape rect = sheet.PrstGeomShapes.AddPrstGeomShape(2, 2, 100, 100, PrstGeomShapeType.Rect);
XlsShape shape = rect as XlsShape;
//set the border style
shape.Line.ForeColor = Color.Red;
shape.Line.Weight = 8;
//save
workbook.SaveToFile("result.xlsx", ExcelVersion.Version2013);
Lisa.Li wrote:Hello,
Greetings from E-iceblue.
Did my solution help you? Thanks in advance for your feedback and time.
Sincerely,
Lisa
E-iceblue support team