This example displays the last column index of the range.
int endColumn = range.getEndColumn(); System.out.println(endColumn);
Related information
EndColumn property