Example: Height property

This example displays the height of the range.

  Range range = sheet.range("A1:E6");
  int height = range.getHeight();
  System.out.println(height);

Related information

Height property