Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
520
How to use Infragistics.Excel.HorizontalCellAlignment.CenterAcrossSelection
posted

Hi,

how to use the alignment value "Infragistics.Excel.HorizontalCellAlignment.CenterAcrossSelection". This is exactly the functionality I need. I'm exporting an excel and I need to place a heading that is centered across 3 to n columns. The problem is that I have to use wrapping and autoheight. When I use MergedCellsRegion autoheight combined with wrapping it will not place my multiline text in a proper way. Excel sets the height of this line alway to the size of the first line so that all other lines are hidden. So CenterAcrossSelection could be the solution, but I don't know how to use. I can't find a property or method to set  range or selection of multiple cells.

Thank you for any help,

Michael