public IElement [] GetColumnHeaders()
{
// TODO: would be nice if at-spi made this easier
Accessible accessible = table.GetColumnHeader(0);
// If that returned null, then maybe we have no
// headers, so not going to query every single row
if (accessible == null)
{
return(new Element [0]);
}
int count = ColumnCount;
Element [] elements = new Element [count];
elements [0] = Element.GetElement(accessible);
for (int i = 1; i < count; i++)
{
accessible = table.GetColumnHeader(i);
if (accessible != null)
{
elements [i] = Element.GetElement(accessible);
}
}
return(elements);
}