GridCells
内容
[
隐藏
]GridCells class
封装了一个集合Cell对象.
public class GridCells : IEnumerable
特性
| 姓名 | 描述 |
|---|---|
| Columns { get; } | |
| Count { get; } | 获取单元格数。 |
| FirstCell { get; } | |
| Item { get; } | 获取Cell工作表中的项目 (3 indexers) |
| LastCell { get; } | |
| MaxColumn { get; } | 包含数据或样式的单元格的最大列索引。 |
| MaxDataColumn { get; } | |
| MaxDataRow { get; } | |
| MaxRow { get; } | 包含数据或样式的单元格的最大行索引。 |
| MergedCells { get; } | 获取合并单元格的集合。 |
| MinColumn { get; } | |
| MinDataColumn { get; } | |
| MinDataRow { get; } | |
| MinRow { get; } | |
| RowEnumerator { get; } | 获取行 enumerator |
| Rows { get; } | 获取集合GridRow表示此工作表中各个行的对象。 |
| StandardHeight { get; set; } | 获取或设置此工作表的默认行高,以点为单位。 |
| StandardHeightPixels { get; set; } | 获取或设置此工作表中的默认行高,以像素为单位。 |
| StandardWidth { get; set; } | 获取或设置工作表的默认列宽,以字符为单位。 |
| StandardWidthInch { get; set; } | |
| StandardWidthPixels { get; set; } |
方法
| 姓名 | 描述 |
|---|---|
| CheckCell(int, int) | 获取Cell指定单元格行索引和列索引处的元素或空值。 |
| Clear() | 清除集合中的所有单元格。 |
| ClearContents(GridCellArea) | 清除范围的内容。 |
| ClearContents(int, int, int, int) | 清除范围的内容。 |
| ClearFormats(GridCellArea) | 清除范围的格式。 |
| ClearFormats(int, int, int, int) | 清除范围的格式。 |
| ClearRange(GridCellArea) | 清除范围的内容和格式。 |
| ClearRange(int, int, int, int) | 清除范围的内容和格式。 |
| CopyColumn(GridCells, int, int) | 复制整列的数据和格式。 |
| CopyColumns(GridCells, int, int, int) | 复制整列的数据和格式。 |
| CopyRow(GridCells, int, int) | 复制整行的数据和格式。 |
| CopyRows(GridCells, int, int, int) | 复制某些整行的数据和格式。 |
| DeleteBlankColumns() | 删除所有不包含任何数据的空白列。 |
| DeleteBlankRows() | 删除所有不包含任何数据的空白行。 |
| DeleteColumn(int) | 删除一列。 |
| DeleteColumn(int, bool) | 删除一列。 |
| DeleteColumns(int, int, bool) | 删除几列。 |
| DeleteRow(int) | 删除一行。 |
| DeleteRows(int, int) | 删除几行。 |
| DeleteRows(int, int, bool) | 删除工作表中的多行。 |
| GetCell(int, int) | 获取Cell指定单元格行索引和列索引处的元素或空值。 |
| GetCellStyle(int, int) | 获取给定单元格的样式。 |
| GetColumn(int) | 获取GridColumn元素或指定单元格列索引处。 |
| GetColumnWidth(int) | 获取指定列的宽度 |
| GetColumnWidthInch(int) | 获取指定列的宽度,以英寸为单位。 |
| GetColumnWidthPixel(int) | 获取指定列的宽度,以像素为单位。 |
| GetEnumerator() | 获取行 enumerator |
| GetRow(int) | 获取GridRow元素或在指定的单元格行索引处。 |
| GetRowHeight(int) | 获取指定行的高度。 |
| GetRowHeightInch(int) | 以英寸为单位获取指定行的高度。 |
| GetRowHeightPixel(int) | 以像素为单位获取指定行的高度。 |
| GetViewColumnWidthPixel(int) | 获取不同视图类型的宽度。 |
| GroupColumns(int, int) | 对列进行分组。 |
| GroupColumns(int, int, bool) | 对列进行分组。 |
| GroupRows(int, int) | 对行进行分组。 |
| HideColumn(int) | 隐藏一列。 |
| HideRow(int) | 隐藏一行。 |
| InsertColumn(int) | 在工作表中插入一个新列。 |
| InsertColumn(int, bool) | 在工作表中插入一个新列。 |
| InsertColumns(int, int) | 在工作表中插入一些列。 |
| InsertColumns(int, int, bool) | 在工作表中插入一些列。 |
| InsertRow(int) | 在工作表中插入一个新行。 |
| InsertRows(int, int) | 在工作表中插入多行。 |
| InsertRows(int, int, bool) | 在工作表中插入多行。 |
| IsBlankColumn(int) | 检查给定列是否为空白(不包含任何数据)。 |
| IsColumnHidden(int) | 检查给定索引处的列是否隐藏。 |
| IsRowHidden(int) | 检查给定索引处的行是否隐藏。 |
| Merge(int, int, int, int) | 将指定范围的单元格合并为一个单元格。 |
| RemoveFormulas() | 删除所有公式并替换为公式的值。 |
| SetColumnWidth(int, double) | 设置指定列的宽度。 |
| SetColumnWidthInch(int, double) | 以英寸为单位设置列宽。 |
| SetColumnWidthPixel(int, int) | 以像素为单位设置列宽。 |
| SetRowHeight(int, double) | 设置指定行的高度。 |
| SetRowHeightInch(int, double) | 以英寸为单位设置行高。 |
| SetRowHeightPixel(int, int) | 以像素为单位设置行高。 |
| SetStyle(CellRange, Style) | 将样式设置为指定范围的单元格。 |
| SetStyle(string, Style) | 将样式设置为指定范围的单元格。 |
| SetStyle(int, int, int, int, Style) | 将样式设置为指定范围的单元格。 |
| Sort(int, int, int, int, int, bool, bool, bool) | 按指定列索引对工作表范围内的数据从上到下进行升序/降序排序。 按指定行索引对工作表范围内的数据从左到右升序/降序排序。 |
| Sort(int, int, int, int, int[], SortOrder[], SortOrientation, bool) | |
| UngroupColumns(int, int) | 取消组合列。 |
| UngroupRows(int, int) | 取消组合行。 |
| UnhideColumn(int, double) | 取消隐藏列 |
| UnhideRow(int) | 取消隐藏一行。 |
| UnMerge(int, int, int, int) | 取消合并指定范围的合并单元格。 |
| static CellIndexToName(int, int) | 根据行列索引获取单元格名称。 |
| static CellNameToIndex(string, out int, out int) | 根据名称获取单元格行列索引 |
| static ColumnIndexToName(int) | 根据列索引获取列名。 |
| static ColumnNameToIndex(string) | 根据列名获取列索引。 |