XlsWorksheet Properties |
The XlsWorksheet type exposes the following members.
Name | Description | |
---|---|---|
![]() |
ActivePane |
Gets or sets index of the active pane.
|
![]() |
ActiveSelectionRange |
Get active selection range.
|
![]() |
AllocatedRange |
Read-only. Returns a Range object that represents a cell or a range of cells.
|
![]() |
AllocatedRangeIncludesFormatting |
There are two different algorithms to create UsedRange object:
1) Default. This property = true. The cell is included into UsedRange when
it has some record created for it even if data is empty (maybe some formatting
changed, maybe not - cell was accessed and record was created).
2) This property = false. In this case XlsIO tries to remove empty rows and
columns from all sides to make UsedRange smaller.
|
![]() |
ArcShapes |
Gets the collection of arc shapes in the worksheet.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
AutoFilters |
Returns collection of worksheet's autofilters. Read-only.
|
![]() |
ButtonShapes |
Gets the collection of button shapes in the worksheet.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
CellImages |
Cell image array. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
CellList |
Returns all used cells in the worksheet. Read-only.
|
![]() |
Cells |
Obsolete.
Returns all used cells in the worksheet. Read-only.
|
![]() |
Charts |
Returns charts collection. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
CheckBoxes |
Returns inner checkboxes collection. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
CodeName |
Name used by macros to access workbook items.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
Columns |
For a Worksheet object, returns an array of Range objects that represents
all used columns on the specified worksheet. Read-only Range object.
|
![]() |
ComboBoxes |
Returns collection with all comboboxes inside this worksheet. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
Comments |
Returns comments collection for this worksheet. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
ConditionalFormats |
Returns collection with all conditional formats in the worksheet. Read-only.
|
![]() |
Copying |
Gets or sets a value indicating whether a copy operation is currently in progress.
|
![]() |
CustomProperties |
Returns collection with all custom properties in the worksheet. Read-only.
|
![]() ![]() |
DefaultColumnWidth |
Returns or sets the defaultwidth of all the columns in the worksheet. Read/write Double.
![]()
The following code illustrates how to get the default column width:
<para>//Create worksheet</para><para>Workbook workbook = new Workbook();</para><para>Worksheet worksheet = workbook.Worksheets[0];</para><para>//Get column width</para><para>Console.Write(worksheet.DefaultColumnWidth);</para><para>//Set default width</para><para>worksheet.DefaultColumnWidth = 40;</para><para>//Save to file</para><para>workbook.SaveToFile("DefaultColumnWidth.xlsx");</para>
|
![]() |
DefaultGridlineColor |
Indicates whether gridline color has default value.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
DefaultPrintRowHeight |
Return default row height.
|
![]() ![]() |
DefaultRowHeight |
Gets or sets default height of all the rows in the worksheet,
in points.Read/write Double.
![]()
The following code illustrates how to get the default row height:
<para>//Create worksheet</para><para>Workbook workbook = new Workbook();</para><para>Worksheet worksheet = workbook.Worksheets[0];</para><para>//Get row height</para><para>Console.Write(worksheet.DefaultRowHeight);</para><para>//Set default height</para><para>worksheet.DefaultRowHeight = 40;</para><para>//Save to file</para><para>workbook.SaveToFile("DefaultRowHeight.xlsx");</para>
|
![]() |
DisplayPageBreaks |
True if page breaks (both automatic and manual) on the specified
worksheet are displayed.
|
![]() |
DVTable |
Gets the data validation table associated with the current instance.
|
![]() |
FirstColumn |
Gets or sets index of the first column of the worksheet.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
FirstDataColumn |
Gets index of the first data column of the worksheet.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
FirstDataRow |
Gets index of the first data row of the worksheet.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
FirstRow |
Gets / sets index of the first row of the worksheet.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
FirstVisibleColumn |
Gets or sets the index of the first visible column in a worksheet.The value is 1-based.
|
![]() |
FirstVisibleRow |
Gets or sets the index of the first visible row in the worksheet. The value is 1-based.
|
![]() |
FormulasVisible |
Gets or sets a value indicating whether the formulas are visible in the worksheet.
|
![]() ![]() |
GridLineColor |
Grid line color.
(Inherited from
XlsWorksheetBase
.)
![]()
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>
|
![]() ![]() |
GridLinesVisible |
True if gridlines are visible;
False otherwise.
![]()
The following code illustrates how to set visibility for grid lines:
<para>//Create worksheet</para><para>Workbook workbook = new Workbook();</para><para>Worksheet worksheet = workbook.Worksheets[0];</para><para>//Set grid line visibility</para><para>worksheet.GridLinesVisible = false;</para><para>//Save to file</para><para>workbook.SaveToFile("GridLinesVisible.xlsx");</para>
|
![]() |
GroupBoxes |
Gets the group boxes in the worksheet.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
GroupShapeCollection |
Get group shapes in worksheet.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
HasMergedCells |
Indicates whether worksheet has merged cells.
|
![]() ![]() |
HasOleObjects |
Indicats whether there is OLE object.
![]()
The following code illustrates how to access the IListObjects collection in the worksheet to add a new IOleObject and check Ole Object:
<para>//Create worksheet</para><para>Workbook workbook = new Workbook();</para><para>Worksheet worksheet = workbook.Worksheets[0];</para><para>//Create image stream</para><para>System.Drawing.Image image = System.Drawing.Image.FromFile("image.png");</para><para>//Add ole object</para><para>IOleObject oleObject = worksheet.OleObjects.Add("Shapes.xlsx", image, OleLinkType.Embed);</para><para>//Check HasOleObject.Output will be true.</para> Console.Write(worksheet.HasOleObjects); <para>//Save to file</para><para>workbook.SaveToFile("HasOleObjects.xlsx");</para> |
![]() |
HasPictures |
Indicates whether tabsheet contains any picture. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
HasVmlShapes |
Indicates whether worksheet has vml shapes. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
HeaderFooterShapes |
Header / footer shapes collection.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
HorizontalSplit |
Gets or sets the number of rows from the top of the worksheet that are frozen in a horizontal split.
|
![]() |
HPageBreaks |
Returns an HPageBreaks collection that represents the horizontal
page breaks on the sheet. Read-only.
|
![]() |
HyperLinks |
Collection of all worksheet's hyperlinks.
|
![]() |
Index |
Returns the index number of the object within the collection of objects.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
InnerHyperLinks |
Collection of all hyperlinks in the current worksheet.
|
![]() |
IsDisplayZeros |
Indicates whether zero values to be displayed
|
![]() |
IsEmpty |
Indicates whether worksheet is empty. Read-only.
|
![]() |
IsFreezePanes |
Indicates whether freezed panes are applied.
|
![]() |
IsPasswordProtected |
True if the worksheet has been protected with password.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
IsRightToLeft |
Indicates whether worksheet is displayed right to left.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
IsRowColHeadersVisible |
Gets or sets whether the worksheet will display row and column headers. Default is true.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
IsSelected |
Indicates whether tab of this sheet is selected. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
IsStringsPreserved |
Indicates if all values in the workbook are preserved as strings.
|
![]() |
IsTransitionEvaluation |
Gets or sets a value indicating whether transition evaluation is enabled.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
Item String |
Get cell range.
|
![]() |
Item Int32, Int32 |
Get cell by row and index.
|
![]() |
Item Int32, Int32, Int32, Int32 |
Get cell range.
|
![]() |
LabelShapes |
Gets the collection of label shapes in the worksheet.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
LastColumn |
Gets or sets index of the last column of the worksheet.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
LastDataColumn |
Gets index of the last data column of the worksheet.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
LastDataRow |
Gets index of the last data row of the worksheet.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
LastRow |
Gets or sets one-based index of the last row of the worksheet.
(Inherited from
XlsWorksheetBase
.)
|
![]() ![]() |
LeftVisibleColumn |
Gets/sets left visible column of the worksheet.
(Inherited from
XlsWorksheetBase
.)
![]()
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>
|
![]() |
Lines |
Gets the lines of the chart.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
ListBoxes |
Gets the list of list boxes in the workbook.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
ListObjects |
Returns all list objects in the worksheet.
|
![]() |
MaxDisplayRange |
Read-only. Returns a Range object that represents Maximum Display Range
|
![]() |
MergedCells |
Returns all merged ranges. Read-only.
|
![]() |
Name |
Returns or sets the name of the object. Read / write String.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
Names |
Name range used by macros to access to workbook items.
|
![]() ![]() |
OleObjects |
Gets the OLE objects.
![]()
The following code illustrates how to access the IListObjects collection in the worksheet to add a new IOleObject:
<para>//Create worksheet</para><para>Workbook workbook = new Workbook();</para><para>Worksheet worksheet = workbook.Worksheets[0];</para><para>//Create image stream</para><para>System.Drawing.Image image = System.Drawing.Image.FromFile("image.png");</para><para>//Add ole object</para><para>IOleObject oleObject = worksheet.OleObjects.Add("Shapes.xlsx", image, OleLinkType.Embed);</para><para>//Save to file</para><para>workbook.SaveToFile("OLEObjects.xlsx");</para>
|
![]() |
OvalShapes |
Gets the oval shapes in the worksheet.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
PageSetup |
Returns a PageSetup object that contains all the page setup settings
for the specified object. Read-only.
|
![]() |
Parent |
Reference to Parent object. Read-only.
(Inherited from
XlsObject
.)
|
![]() |
ParentWorkbook |
Returns parent workbook. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
Pictures |
Pictures collection. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
PivotTables |
Returns charts collection. Read-only.
|
![]() |
ProtectContents |
Indicates whether current sheet is protected.
(Overrides
XlsWorksheetBase
ProtectContents
.)
|
![]() |
ProtectDrawingObjects |
True if objects are protected. Read only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
Protection |
Gets protected options. Read-only. For sets protection options use "Protect" method.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
ProtectScenarios |
True if the scenarios of the current sheet are protected. Read only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
PrstGeomShapes |
Gets the collection of preset geometric shapes.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
QueryTables |
Gets the collection of query tables in the worksheet.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
QuotedName |
Returns quoted name of the worksheet.
|
![]() |
RadioButtons |
Returns inner radiobutton collection. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
Range |
Returns a Range object that represents the used range on the
specified worksheet. Read-only.
|
![]() |
RealIndex |
Index of the worksheet in the workbook
(not necessary in Worksheets collection)
(Inherited from
XlsWorksheetBase
.)
|
![]() |
RectangleShapes |
Gets the rectangle shapes in the worksheet.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
ReferenceCount |
Get quantity of instance references.
(Inherited from
XlsObject
.)
|
![]() |
RowColumnHeadersVisible |
True if row and column headers are visible.
False otherwise.
|
![]() |
Rows |
Represents all the rows on the specified worksheet. Read-only Range object.
|
![]() |
ScrollBarShapes |
Gets the scroll bar shapes associated with the worksheet.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
SelectionCount |
Gets array with selection count. Read-only.
|
![]() |
Shapes |
Shapes collection.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
SheetId |
Gets or sets sheetId for this sheet.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
Slicers |
Returns slicer collection. Read-only.
|
![]() |
SparklineGroups |
Gets the sparkline groups.
|
![]() |
SpinnerShapes |
Gets the spinner shapes in the worksheet.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
StandardHeightFlag |
Gets or sets the standard (default) height option flag, which defines that
standard (default) row height and book default font height do not match. Bool.
|
![]() |
TabColor |
Tab color.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
TabColorObject |
Tab color.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
TabKnownColor |
Tab excel color.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
TextBoxes |
Returns inner textboxes collection. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
TopLeftCell |
Gets top left cell of the worksheet.
|
![]() ![]() |
TopVisibleRow |
Gets/sets top visible row of the worksheet.
(Inherited from
XlsWorksheetBase
.)
![]()
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>
|
![]() |
Type |
Returns or sets the worksheet type.
|
![]() |
TypedArcs |
Returns inner Arcs collection. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
TypedButtons |
Returns inner buttons collection. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
TypedCheckBoxes |
Returns inner checkboxes collection. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
TypedComboBoxes |
Returns inner comboboxes collection. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
TypedGroupBoxes |
Returns inner gourpboxes collection. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
TypedLabels |
Returns inner labels collection. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
TypedLines |
Returns inner lines collection. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
TypedListBoxes |
Returns inner listboxes collection. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
TypedOvals |
Returns inner ovals collection. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
TypedPictures |
Returns inner pictures collection. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
TypedRadioButtons |
Returns inner radiobutton collection. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
TypedRects |
Returns inner rects collection. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
TypedScollBars |
Returns inner scollbars collection. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
TypedSpinners |
Returns inner spinners collection. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
TypedTextBoxes |
Returns inner textboxes collection. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
UnknownVmlShapes |
Indicates whether worksheet contains some unknown vml shapes.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
UseRangesCache |
Indicates whether all created range objects should be cached. Default value is true.
|
![]() |
Version |
Gets or sets excel file version.
|
![]() |
VerticalSplit |
Gets or sets the number of columns to freeze for vertical splitting in the worksheet.
|
![]() |
ViewMode |
Gets or sets the view mode of the sheet.
|
![]() |
Visibility |
Controls end user visibility of worksheet.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
VmlShapesCount |
Returns number of known vml shapes. Read-only.
(Inherited from
XlsWorksheetBase
.)
|
![]() |
VPageBreaks |
Returns a VPageBreaks collection that represents the vertical page
breaks on the sheet. Read-only.
|
![]() |
Workbook |
Get parent workbook of current worksheet.
(Inherited from
XlsWorksheetBase
.)
|
![]() ![]() |
Zoom |
Zoom factor of document.
![]()
The following code illustrates how to set zoom level of the sheet:
<para>//Create worksheet</para><para>Workbook workbook = new Workbook();</para><para>Worksheet worksheet = workbook.Worksheets[0];</para><para>//Set zoom</para><para>worksheet.Zoom = 200;</para><para>//Save to file</para><para>workbook.SaveToFile("Zoom.xlsx");</para>
|
![]() |
ZoomScaleNormal |
Gets or sets the zoom scale of normal view of the sheet.
|
![]() |
ZoomScalePageBreakView |
Gets or sets the zoom scale of page break preview of the sheet.
|
![]() |
ZoomScalePageLayoutView |
Gets or sets the zoom scale of page layout view of the sheet.
|