类 CellInfo

java.lang.Object
com.grapecity.documents.excel.CellInfo

public final class CellInfo extends Object
Provide some helper functions.
  • 构造器详细资料

    • CellInfo

      public CellInfo()
  • 方法详细资料

    • RowIndexToName

      public static String RowIndexToName(int index)
      Gets row name according to row index.
      参数:
      index - row index
      返回:
      the name of row
    • RowNameToIndex

      public static int RowNameToIndex(String name)
      Gets row index according to row name.
      参数:
      name - row name
      返回:
      the index of row
    • ColumnIndexToName

      public static String ColumnIndexToName(int index)
      Gets column name according to column index.
      参数:
      index - column index
      返回:
      the name of column
    • ColumnNameToIndex

      public static int ColumnNameToIndex(String name)
      Gets column index according to column name.
      参数:
      name - column name
      返回:
      the index of column
    • CellIndexToName

      public static String CellIndexToName(int row, int column)
      Gets cell name(address) according to its row and column indexes.
      参数:
      row - row index
      column - column index
      返回:
      the address of cell
    • CellNameToIndex

      public static int[] CellNameToIndex(String name)
      Gets cell row and column according to its name(address).
      参数:
      name - cell name
      返回:
      a array containing the converted row and column index
    • GetRangeBoundary

      public static Rectangle GetRangeBoundary(IRange range)
      Gets the position and size (in pixels) of the specified range.
      参数:
      range - The range object
      返回:
      a rectangle containing the position and size of the range