[]
An IPane provides access to the scroll position and activation state of a pane in a worksheet view. You can obtain an IPane from the active pane by calling IWorksheet.getActivePane(), or from the pane collection returned by IWorksheet.getPanes().
worksheet.splitPanes(2, 2);
IPane pane = worksheet.getActivePane();
pane.setScrollRow(3);
pane.setScrollColumn(2);
booleanactivate()intgetIndex()intintvoidsetScrollColumn(int value) voidsetScrollRow(int value) You cannot activate a frozen pane.
worksheet.splitPanes(2, 2);
IPane pane = worksheet.getPanes().get(0);
boolean activated = pane.activate();
true if the pane is activated.IllegalStateException - if this pane cannot be activated.This index identifies the pane's position in the IWorksheet.getPanes() collection.
worksheet.splitPanes(2, 2);
IPane pane = worksheet.getPanes().get(0);
int index = pane.getIndex();
Use this method to determine the current horizontal scroll position of a split pane.
worksheet.splitPanes(2, 2);
IPane pane = worksheet.getPanes().get(0);
pane.setScrollColumn(3);
int scrollColumn = pane.getScrollColumn();
Use this method to set the horizontal scroll position of a split pane.
worksheet.splitPanes(2, 2);
IPane pane = worksheet.getPanes().get(0);
pane.setScrollColumn(3);
value - The index of the leftmost visible column in the pane or worksheet.Use this method to determine the current vertical scroll position for a pane after the worksheet has been split or scrolled.
worksheet.splitPanes(2, 2);
IPane pane = worksheet.getPanes().get(0);
pane.setScrollRow(5);
int scrollRow = pane.getScrollRow();
Use this method to set the vertical scroll position for a pane after the worksheet has been split or scrolled.
worksheet.splitPanes(2, 2);
IPane pane = worksheet.getPanes().get(0);
pane.setScrollRow(5);
value - The row number that is currently displayed at the top of the pane or worksheet.