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

Borders

Jan 28, 2012 at 5:30 PM

First of all: Thanks for that really great helpful and easy to use library.

One simple question: I want to format a range to have the usual standard layout, i.e. a thick border around the range, thin grid inside. I find a Style.Border.OutsideBorder property but not a Style.Border.InsideBorder property. Does that mean that I can not set the internal grid on the complete range but have to set outside boarders on every cell instead?

Thanks

Coordinator
Jan 28, 2012 at 6:02 PM

range.Cells().Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
range.Style.Border.OutsideBorder = XLBorderStyleValues.Thick; 

Jan 28, 2012 at 6:21 PM

Perfect

Thanks

Coordinator
Jan 28, 2012 at 8:20 PM

You know what, pick up the latest source code. I just added InsideBorder and InsideBorderColor to Style.Border