ExcelWorksheet Class

Excel Worksheet

Definition

Namespace: Winnovative.ExcelLib
Assembly: WnvXls_NetCore (in WnvXls_NetCore.dll) Version: 11.0.0
C#
public class ExcelWorksheet
Inheritance
Object    ExcelWorksheet

Properties

Charts Gets the charts collection of this worksheet.
Comments Gets the comments collection of this worksheet.
HorizontalPageBreaks Gets the collection of horizontal page breaks of this worksheet.
Hyperlinks Gets the collection of hyperlinks of this worksheet
ItemString Gets range referenced by the range name or range reference string in A1 notation.
ItemInt32, Int32 Gets the specified cell in the worksheet.
ItemInt32, Int32, Int32, Int32 Gets cells range specified the the higher left and lower right coordinates.
Name Gets or sets the worksheet name.
NamedRanges Gets the named ranges collection of this worksheet (Worksheet scope named ranges).
PageSetup Gets the worksheet page setup options (paper size, page orientation, etc.).
Pictures Gets the pictures collection of this worksheet.
SheetIndex Gets the index of this worksheet in the workbook sheets collection.
ShowGridLines Gets or sets a flag indicating if the worksheet grid lines are visible or not. Default value is true.
UsedRange Gets the used range on the specified worksheet.
UsedRangeCells Gets the cells in the used range of the worksheet.
UsedRangeColumns Gets an arrat of Range objects representing all the columns in the used range of the worksheet.
UsedRangeRows Gets a an array of Range objects representing all the rows in the used range of the worksheet.
VerticalPageBreaks Gets the collection of vertical page breaks of this worksheet.
Workbook Gets the parent workbook of this worksheet.
WorksheetSecurity Gets an object used to manage the worksheet security options like password protection.

Methods

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
(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
(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
(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
(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
(Inherited from Object)

See Also