Click or drag to resize

XlsWorksheetBase Properties

The XlsWorksheetBase type exposes the following members.

Properties
Name Description
Public property ArcShapes
Gets the collection of arc shapes in the worksheet.
Public property ButtonShapes
Gets the collection of button shapes in the worksheet.
Public property CellImages
Cell image array. Read-only.
Public property Charts
Returns charts collection. Read-only.
Public property CheckBoxes
Returns inner checkboxes collection. Read-only.
Public property CodeName
Name used by macros to access workbook items.
Public property ComboBoxes
Returns collection with all comboboxes inside this worksheet. Read-only.
Public property Comments
Returns comments collection for this worksheet. Read-only.
Public property DefaultGridlineColor
Indicates whether gridline color has default value.
Public property FirstColumn
Gets or sets index of the first column of the worksheet.
Public property FirstDataColumn
Gets index of the first data column of the worksheet.
Public property FirstDataRow
Gets index of the first data row of the worksheet.
Public property FirstRow
Gets / sets index of the first row of the worksheet.
Public property Code example GridLineColor
Grid line color.
Examples
The following code illustrates how to set the grid line color:
<para>//Create worksheet</para><para>Workbook workbook = new Workbook();</para><para>Worksheet worksheet = workbook.Worksheets[0];</para><para>//Set grid lines color</para><para>worksheet.GridLineColor = ExcelColors.Red;</para><para>//Save to file</para><para>workbook.SaveToFile("GridLineColor.xlsx");</para>
Public property GroupBoxes
Gets the group boxes in the worksheet.
Public property GroupShapeCollection
Get group shapes in worksheet.
Public property HasPictures
Indicates whether tabsheet contains any picture. Read-only.
Public property HasVmlShapes
Indicates whether worksheet has vml shapes. Read-only.
Public property HeaderFooterShapes
Header / footer shapes collection.
Public property Index
Returns the index number of the object within the collection of objects.
Public property IsPasswordProtected
True if the worksheet has been protected with password.
Public property IsRightToLeft
Indicates whether worksheet is displayed right to left.
Public property IsRowColHeadersVisible
Gets or sets whether the worksheet will display row and column headers. Default is true.
Public property IsSelected
Indicates whether tab of this sheet is selected. Read-only.
Public property IsTransitionEvaluation
Gets or sets a value indicating whether transition evaluation is enabled.
Public property LabelShapes
Gets the collection of label shapes in the worksheet.
Public property LastColumn
Gets or sets index of the last column of the worksheet.
Public property LastDataColumn
Gets index of the last data column of the worksheet.
Public property LastDataRow
Gets index of the last data row of the worksheet.
Public property LastRow
Gets or sets one-based index of the last row of the worksheet.
Public property Code example LeftVisibleColumn
Gets/sets left visible column of the worksheet.
Examples
The following code illustrates how to set the left visible column:
<para>//Create worksheet</para><para>Workbook workbook = new Workbook();</para><para>Worksheet worksheet = workbook.Worksheets[0];</para><para>//Set left visible column</para><para>worksheet.LeftVisibleColumn = 3;</para><para>//Get left visible column</para><para>Console.Write(worksheet.LeftVisibleColumn);</para><para>//Save to file</para><para>workbook.SaveToFile("LeftVisibleColumn.xlsx");</para>
Public property Lines
Gets the lines of the chart.
Public property ListBoxes
Gets the list of list boxes in the workbook.
Public property Name
Returns or sets the name of the object. Read / write String.
Public property OvalShapes
Gets the oval shapes in the worksheet.
Public property Parent
Reference to Parent object. Read-only.
(Inherited from XlsObject .)
Public property ParentWorkbook
Returns parent workbook. Read-only.
Public property Pictures
Pictures collection. Read-only.
Public property ProtectContents
Indicates is current sheet is protected.
Public property ProtectDrawingObjects
True if objects are protected. Read only.
Public property Protection
Gets protected options. Read-only. For sets protection options use "Protect" method.
Public property ProtectScenarios
True if the scenarios of the current sheet are protected. Read only.
Public property PrstGeomShapes
Gets the collection of preset geometric shapes.
Public property QueryTables
Gets the collection of query tables in the worksheet.
Public property RadioButtons
Returns inner radiobutton collection. Read-only.
Public property RealIndex
Index of the worksheet in the workbook (not necessary in Worksheets collection)
Public property RectangleShapes
Gets the rectangle shapes in the worksheet.
Protected property ReferenceCount
Get quantity of instance references.
(Inherited from XlsObject .)
Public property ScrollBarShapes
Gets the scroll bar shapes associated with the worksheet.
Public property Shapes
Shapes collection.
Public property SheetId
Gets or sets sheetId for this sheet.
Public property SpinnerShapes
Gets the spinner shapes in the worksheet.
Public property TabColor
Tab color.
Public property TabColorObject
Tab color.
Public property TabKnownColor
Tab excel color.
Public property TextBoxes
Returns inner textboxes collection. Read-only.
Public property Code example TopVisibleRow
Gets/sets top visible row of the worksheet.
Examples
The following code illustrates how to set the top visible row:
<para>//Create worksheet</para><para>Workbook workbook = new Workbook();</para><para>Worksheet worksheet = workbook.Worksheets[0];</para><para>//Set top visible row</para><para>worksheet.TopVisibleRow = 5;</para><para>//Get top visible row</para><para>Console.Write(worksheet.TopVisibleRow);</para><para>//Save to file</para><para>workbook.SaveToFile("TopVisibleRow.xlsx");</para>
Public property TypedArcs
Returns inner Arcs collection. Read-only.
Public property TypedButtons
Returns inner buttons collection. Read-only.
Public property TypedCheckBoxes
Returns inner checkboxes collection. Read-only.
Public property TypedComboBoxes
Returns inner comboboxes collection. Read-only.
Public property TypedGroupBoxes
Returns inner gourpboxes collection. Read-only.
Public property TypedLabels
Returns inner labels collection. Read-only.
Public property TypedLines
Returns inner lines collection. Read-only.
Public property TypedListBoxes
Returns inner listboxes collection. Read-only.
Public property TypedOvals
Returns inner ovals collection. Read-only.
Public property TypedPictures
Returns inner pictures collection. Read-only.
Public property TypedRadioButtons
Returns inner radiobutton collection. Read-only.
Public property TypedRects
Returns inner rects collection. Read-only.
Public property TypedScollBars
Returns inner scollbars collection. Read-only.
Public property TypedSpinners
Returns inner spinners collection. Read-only.
Public property TypedTextBoxes
Returns inner textboxes collection. Read-only.
Public property UnknownVmlShapes
Indicates whether worksheet contains some unknown vml shapes.
Public property Visibility
Controls end user visibility of worksheet.
Public property VmlShapesCount
Returns number of known vml shapes. Read-only.
Public property Workbook
Get parent workbook of current worksheet.
Public property Zoom
Zoom factor of document.
Top
See Also