This project has moved. For the latest updates, please go here.

Styles

Aug 4, 2016 at 1:12 PM
Something wrong is happening

I create a range and procedure to set styles for it.
Something like this xlsRange.Style=SetStyle(xlsRange.Style, ws["Style"].ToString());
No styles were set. In debug window, I see following:
....
lStyle.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
but in local variables window still
lStyle
  Alignment
   ....
     Horzontal       General
What I'm doing wrong&