public IElement [] GetRowHeaders ()
{
// TODO: would be nice if at-spi made this easier
Accessible accessible = table.GetRowHeader (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 = RowCount;
Element [] elements = new Element [count];
elements [0] = Element.GetElement (accessible);
for (int i = 1; i < count; i++) {
accessible = table.GetRowHeader (i);
if (accessible != null)
elements [i] = Element.GetElement (accessible);
}
return elements;
}