if (textTableCellRange == null)
return false;
try {
XTextTable xTextTable = (XTextTable) textTableCellRange.getCell(0,
0).getTextTable().getXTextContent();
XTableRows tableRows = xTextTable.getRows();
int rowIndex = textTableCellRange.getRangeName()
.getRangeStartRowIndex();
Object row = tableRows.getByIndex(rowIndex);
XPropertySet propertySetRow = (XPropertySet) UnoRuntime
.queryInterface(XPropertySet.class, row);
Boolean rowAutoHeight = (Boolean) propertySetRow
.getPropertyValue("IsAutoHeight");
return rowAutoHeight.booleanValue();