Posted 25 October 2017, 6:03 pm EST
I am trying to indent a particular cell by one. When I sent the property to one for the cell, it is indenting all cells in the first column (A). In this worksheet, I have 39 rows, and each row is indented by one instead of just the one at the seventh index. What am I doing wrong?
private static XLStyle sCellLeft
var wb = new C1XLBook();
XLSheet ws = wb.Sheets[0];
sCellLeft = new XLStyle(wb);
sCellLeft.AlignHorz = XLAlignHorzEnum.Left;
sCellLeft.Font = new Font(“Calibri”, 11, FontStyle.Regular);
ws[7, 0].Value = “Something”;
ws[7, 0].Style = style;
ws[7, 0].Style.Indent = 1;