Class CellInfo
public final class CellInfo
extends Object
提供一些辅助函数。
-
Constructor Summary
Constructors
-
Method Summary
static int[]
static int
static int
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CellInfo
public CellInfo()
-
Method Details
-
RowIndexToName
public static String RowIndexToName(int index)
获取根据行索引对应的行名称。
- Parameters:
index
- 行索引
- Returns:
- 行的名称
-
RowNameToIndex
public static int RowNameToIndex(String name)
获取根据行名称的行索引。
- Parameters:
name
- 行名称
- Returns:
- 行的索引
-
ColumnIndexToName
public static String ColumnIndexToName(int index)
获取根据列索引对应的列名。
- Parameters:
index
- 列索引
- Returns:
- 列的名称
-
ColumnNameToIndex
public static int ColumnNameToIndex(String name)
获取根据列名对应的列索引。
- Parameters:
name
- 列名
- Returns:
- 列的索引
-
CellIndexToName
public static String CellIndexToName(int row,
int column)
获取单元格名称(地址),根据其行和列索引。
- Parameters:
row
- 行索引
column
- 列索引
- Returns:
- 单元格的地址
-
CellNameToIndex
public static int[] CellNameToIndex(String name)
获取单元格的行和列,根据其名称(地址)。
- Parameters:
name
- 单元格名称
- Returns:
- 包含转换后的行和列索引的数组
-
GetRangeBoundary
获取指定范围的位置和大小(以像素为单位)。
- Parameters:
range
- 范围对象
- Returns:
- 包含范围位置和大小的矩形区域