Search code examples
asp.net-mvcopenxmlclosedxmlformat-string

Difference between center and centercontinuous alignment in ClosedXML?


I am working on ClosedXML for Export an Excel, and just find a property for alignment Center and CenterContinuous.

worksheet.Column(9).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;

And

worksheet.Column(9).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.CenterContinuous;

I have tried both, but the results remain same, anybody know what the exact difference?


Solution

  • CenterContinuous will center text along cells with same style.