[]
        
(Showing Draft Content)

IPanes

Interface IPanes


public interface IPanes
Represents the panes in a worksheet.

This interface provides access to the collection of IPane objects associated with a worksheet. Use IWorksheet.getPanes() to retrieve the panes collection after freezing or splitting a worksheet view.


 worksheet.splitPanes(2, 2);
 IPanes panes = worksheet.getPanes();
 int count = panes.getCount();
 IPane pane = panes.get(0);
 
  • Method Summary

    Modifier and Type
    Method
    Description
    get(int index)
    Gets the pane at the specified index.
    int
    Gets the number of pane objects in the collection.
  • Method Details

    • getCount

      int getCount()
      Gets the number of pane objects in the collection.

      Use this method to determine how many worksheet panes are currently available from IWorksheet.getPanes().

      
       worksheet.splitPanes(2, 2);
       IPanes panes = worksheet.getPanes();
       int count = panes.getCount();
       
      Returns:
      The number of pane objects in the collection.
    • get

      IPane get(int index)
      Gets the pane at the specified index.

      Use this method to access a pane in the IPanes collection after the worksheet has been split into multiple panes.

      
       worksheet.splitPanes(2, 2);
       IPanes panes = worksheet.getPanes();
       IPane pane = panes.get(0);
       int paneIndex = pane.getIndex();
       
      Parameters:
      index - The index of the pane to retrieve.
      Returns:
      The IPane at the specified index.