Hi, all!
In my program I need to read alignment of some cells in Range, but this code:
isn't work because "Operator '==' cannot be applied to operands of type 'object' and 'Microsoft.Offi ce.Interop.Exce l.XlHAlign'" compiler error.
How can I do it???
Thanks.
In my program I need to read alignment of some cells in Range, but this code:
Code:
if (((Excel.Range)r.Cells[1, 1]).HorizontalAlignment == Excel.XlHAlign.xlHAlignCenter )
{
// do something ...
}
How can I do it???
Thanks.
Comment