AddAutoFilter(int, int, int) |
设置应用指定自动筛选的范围。 |
AddColumn() |
添加一个新列。 |
AddCustomFilter(int, string) |
为指定行添加自定义过滤器。 |
AddCustomFilter(int, int, object[], GridFilterOperatorType[]) |
为从开始行到结束行的指定行范围添加自定义过滤器。 |
AddRow() |
添加一个新行。 |
AddSelectedRange(CellRange) |
向工作表添加一个新的选定范围。 |
AutoFitColumn(int) |
自动调整列宽。 |
AutoFitColumn(int, int, int) |
自动调整列宽。 |
AutoFitColumns() |
自动调整此工作表中的所有列。 |
AutoFitColumns(int, int) |
自动调整列宽。 |
AutoFitColumns(int, int, int, int) |
自动调整列宽。 |
AutoFitRow(int) |
自动调整行高。 |
AutoFitRow(int, int, int) |
自动调整行高。 |
AutoFitRow(int, int, int, int) |
在矩形范围内自动调整行高。 |
AutoFitRows() |
自动调整此工作表中的所有行。 |
AutoFitRows(int, int) |
自动调整范围内的行高。 |
AutoFitRowsMerged() |
自动调整此工作表中的所有行。当单元格合并成一行时,它也会自动调整行高。 |
CalculateFormula(string) |
计算公式。 |
CellInMerged(CellLocation) |
获取指定单元格位置是否在合并中的值。 |
CellRangeInMerge(CellRange) |
获取一个值,该值指示指定单元格范围是否合并。 |
ClearComments() |
清除设计器电子表格中的所有注释。 |
ClearMerges() |
清除所有合并。 |
ClearSelection() |
清除工作表中的选择。 |
ColInMerged(int) |
获取一个值,该值指示是否合并中的指定列。 |
ColInSelection(int) |
判断索引处的指定列是否处于选中状态。 |
Copy(Worksheet) |
从另一个工作表复制内容和格式。 |
CreateRange(string, string) |
|
CreateRange(int, int, int, int) |
|
DataBind(object, string) |
将数据源对象中的数据与 Worksheet 对象绑定。 |
DataUnbind() |
将数据源对象中的数据与 Worksheet 对象解除绑定。 |
ExportDataTable(DataTable, int, int, int, int, bool) |
将 Worksheet 的 Cells 集合中的数据导出到指定的 DataTable 对象。 |
ExportDataTable(int, int, int, int, bool, bool) |
将工作表的 Cells 集合中的数据导出到新的 DataTable 对象。 |
FilterString(int, string) |
为列设置过滤器。请注意,我们将在调用 filterString 过滤条件字符串之前调用 AddAutoFilter。注意我们使用 comma->"," 作为拆分字符,因此您要过滤的单元格值不应包含 comma filterString(10,“123,456”) 表示第 10 列应包含 123 或 456,filterString(10,“123” ) 表示第 10 列应包含 123 用逗号分隔值,例如。 123,456,789 或 abc |
FreezePanes(string, int, int) |
在工作表中的指定单元格处冻结窗格。 |
FreezePanes(int, int, int, int) |
在工作表中的指定单元格处冻结窗格。 |
GetAllSelectedRanges() |
获取此工作表的所有选定范围。 |
GetCellLocationByClientPoint(Point) |
通过客户端坐标点获取单元格位置。 |
GetColumnCaption(int) |
获取列标题。如果未设置标题,则返回空字符串。 |
GetFirstVisibleColumn() |
获取工作表视图的第一个可见列索引。 |
GetFirstVisibleRow() |
获取工作表视图的第一个可见行索引。 |
GetFocusedCell() |
获取焦点单元格。 |
GetFocusedCellLocation() |
获取一个被聚焦的单元格位置。 |
GetFreezedPanes(out int, out int, out int, out int) |
获取冻结窗格。 |
GetIsReadonly(int, int) |
获取单元格是否为只读。这是GridWeb的扩展属性,不会保留在实际的excel文件中 |
GetLastSelection() |
获取上次选择的单元格范围。 |
GetMerge(int) |
获取指定索引处合并的单元格范围。 |
GetMergeByCell(int, int) |
获取包含行、列位置单元格的合并区域,如果所有合并区域都不包含该单元格位置,则返回null |
GroupColumns(int, int) |
对列进行分组。 |
GroupColumns(int, int, bool, bool) |
对列进行分组。 |
GroupColumns(int, int, int, bool) |
对列进行分组。 |
GroupRows(int, int) |
对行进行分组。 |
GroupRows(int, int, bool) |
对行进行分组。 |
GroupRows(int, int, bool, bool) |
对行进行分组。 |
GroupRows(int, int, int, bool) |
对行进行分组。 |
GroupRows(int, int, int, bool, bool) |
对行进行分组。 |
ImportDataTable(DataTable, bool, int, int) |
将 DataTable 对象导入工作表。 |
InSelection(CellLocation) |
判断指定的单元格位置是否处于选中状态 |
InsertColumn(int) |
插入一个新列。 |
InsertRow(int) |
插入新行。 |
IsCellFocused() |
确定单元格是否被聚焦。 |
IsProtected() |
指示工作表是否受保护。 |
Merge(CellRange) |
将指定范围的单元格合并为一个单元格。 |
MergeFocused(CellLocation) |
获取焦点合并的索引。 |
MoveTo(int) |
将工作表移动到电子表格中的另一个位置。 |
RefreshFilter() |
刷新自动过滤器以隐藏或取消隐藏行。 |
RemoveAutoFilter() |
移除工作表的自动过滤器。 |
RemoveColumn(int) |
删除指定索引处的列。 |
RemoveRow(int) |
删除指定索引处的行。 |
ResetFilter(int) |
将过滤器类型重置为无 |
ResetFilters(int, int) |
将过滤器类型重置为无 |
RowInMerged(int) |
获取一个值,该值指示是否合并中的指定行。 |
RowInSelection(int) |
判断索引处的指定行是否处于选中状态。 |
SetAllCellsEditable() |
使所有单元格可编辑。这是扩展属性 |
SetAllCellsReadonly() |
使所有单元格只读。这是扩展属性 注意此属性不能保留在实际单元格中,如果要保留保护请使用 setProtect |
SetColumnCaption(int, string) |
为列设置标题。请注意这是一个扩展属性,不能保留在 excel 文件中 |
SetFirstVisibleColumn(int) |
设置工作表视图的第一个可见列索引。 |
SetFirstVisibleRow(int) |
设置工作表视图的第一个可见行索引。 |
SetFocusedCell(CellLocation) |
将单元格焦点设置在指定位置。 |
SetFocusedCell(int, int) |
将单元格焦点设置在指定的列和行。 |
SetFont(CellRange, Font) |
将字体对象设置为 cellRange. |
SetFontColor(CellRange, Color) |
将字体颜色设置为 cellRange. |
SetIsReadonly(int, int, bool) |
设置单元格是否为只读。这是一个扩展属性,它不会保留在实际的excel文件中 |
SetProtect() |
保护工作表。 |
SetProtected(CellRange, bool) |
设置cellRange是否受保护。这是一个扩展方法,只在Grid中使用。 该方法与cell.Style.CellLocked属性无关 保存到excel文件后不会生效。 |
SetStyle(CellRange, Style) |
将样式对象设置为 cellRange. |
SetStyle(GridCellArea, Style) |
将样式对象设置为 cellRange. |
UnFreezePanes() |
解冻工作表中的窗格。 |
UngroupColumns(int, int) |
取消组合列。 |
UngroupColumns(int, int, bool) |
取消组合列。 |
UngroupRows(int, int) |
取消组合行。 |
UngroupRows(int, int, bool) |
取消组合行。 |
Unmerge(CellLocation) |
从合并中删除指定的单元格位置。 |
Unmerge(CellRange) |
将指定范围的单元格取消合并为单个单元格。 |
Unmerge(int, int) |
从合并中删除指定的单元格行列索引。 |
UnProtect() |
取消保护工作表。 |
static CellIndexToR1C1(int, int) |
根据行列索引获取单元格r1c1样式名称。 |