The ExcelWorksheet type exposes the following members.
Methods
Name | Description | |
---|---|---|
Activate |
Makes this worksheet the active worksheet of the workbook.
| |
AutofitColumn |
Changes the width of the specified column to achieve the best fit for the cells content.
| |
AutofitColumns |
Changes the width of the used range columns to achieve the best fit for the cells content.
| |
AutofitRow |
Changes the height of the specified row to achieve the best fit for the cells content.
| |
AutofitRows |
Changes the height of the used range rows to achieve the best fit for the cells content.
| |
DeleteColumn |
Removes the column at the specified zero based index from worksheet.
| |
DeleteRow |
Removes the row at the specified zero based index from worksheet.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetColumnVisibility |
Gets the visibility of the column at the specified index.
| |
GetColumnWidthInChars |
Gets the specified column width in characters. On a worksheet, you can specify a column width of 0 to 255.
This value represents the number of characters that can be displayed in a cell that is formatted with
the standard font (standard font: The default text font for worksheets. The standard font determines the default font
for the Normal cell style.). The default column width is 8.43 characters.
| |
GetDataTable(ExcelRange, Boolean) |
Gets a System.Data.DataTable object from the specified source range. If the getColumnNames parameter is true the
first row of the range will be used to obtain names for the DataTable columns.
| |
GetDataTable(ExcelRange, Boolean, Boolean, Boolean) |
Gets a System.Data.DataTable object from the specified source range.
If the getColumnNames parameter is true the first row of the range will be used to obtain names for the DataTable columns.
If the getFormulaResult parameter is true the result values of the formulas evaluation will be exported
If the getColumnDataTypes is true the data type of the first value of the range column will give the data type
of the corresponding column in the resulted DataTable.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetRowHeightInPoints |
Gets the specified row height in points. You can specify a row height of 0 to 409.
This value represents the height measurement in points (1 point equals 1/72 inch).
The default row height is 12.75 points.
| |
GetRowVisibility |
Gets the visibility of the row at the specified index.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InsertColumn(Int32) |
Inserts a column at the specified one based index in worksheet. The new column will have the default style of the worksheet.
| |
InsertColumn(Int32, Boolean, Boolean) |
Inserts a column with style at the specified one based index in worksheet. If inheritStyle parameter is false the new column will have the
default style of the worksheet. If inheritStyle is true the new column will inherit the style from the previous column if
fromPrevious parameter is true or from the next column if the fromPrevious parameter is false.
| |
InsertRow(Int32) |
Inserts a row at the specified one based in worksheet. The new row will have the default style of the worksheet.
| |
InsertRow(Int32, Boolean, Boolean) |
Inserts a row with style at the specified one based in worksheet. If inheritStyle parameter is false the new row will have the
default style of the worksheet. If inheritStyle is true the new row will inherit the style from the previous row if
fromPrevious parameter is true or from the next row if the fromPrevious parameter is false.
| |
LoadDataTable(DataTable, Int32, Int32, Boolean) |
Loads the values from the specified System.Data.DataTable object into the worksheet at the location
given by the top row and left column indexes.
| |
LoadDataTable(DataTable, Int32, Int32, Int32, Int32, Boolean) |
Loads the values from the specified System.Data.DataTable object into the worksheet at the location
given by the top row and left column indexes.
| |
LoadDataView(DataView, Int32, Int32, Boolean) |
Loads the values from the specified System.Data.DataView object into the worksheet at the location
given by the top row and left column indexes.
| |
LoadDataView(DataView, Int32, Int32, Int32, Int32, Boolean) |
Loads the values from the specified System.Data.DataView object into the worksheet at the location
given by the top row and left column indexes.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MoveTo |
Moves the worksheet in the worksheets collection of the workbook.
| |
SetColumnAutoStyle |
Sets the auto style of a column. If this method is called before a cell in the specified column becomes part of the used range
(a value is set in cell), the cell will automatically be assigned with the specified column style.
| |
SetColumnVisibility |
Sets the visibility of the column at the specified index.
| |
SetColumnWidthInChars |
Sets the column width in characters for the specified column. On a worksheet, you can specify a column width of 0 to 255.
This value represents the number of characters that can be displayed in a cell that is formatted with
the standard font (standard font: The default text font for worksheets. The standard font determines the default font
for the Normal cell style.). The default column width is 8.43 characters. If the column width is set to 0, the column is hidden.
| |
SetDefaultColumnWidthInChars |
Sets the default column width in characters for the columns in this worksheet.
| |
SetDefaultRowHeightInPoints |
Sets the default row height in points. You can specify a row height of 0 to 409.
This value represents the height measurement in points (1 point equals 1/72 inch).
The default row height is 12.75 points.
| |
SetRowAutoStyle |
Set the auto style of a row. If this method is called before a cell in the specified row becomes part of the used range
(a value is set in cell), the cell will automatically be assigned with the specified row style.
| |
SetRowHeightInPoints |
Sets the row height in points for the specified row. You can specify a row height of 0 to 409.
This value represents the height measurement in points (1 point equals 1/72 inch).
The default row height is 12.75 points. If the row height is set to 0, the row is hidden.
| |
SetRowVisibility |
Sets the visibility of the row at the specified index.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
See Also