Worksheet

Overview

Worksheet is a class in Aspose.Cells FOSS for .NET.

Encapsulates a single worksheet and its supported v0.1 worksheet features. var workbook = new Workbook(); var sheet = workbook.Worksheets[0]; sheet.Name = “Data”; sheet.Cells[“A1”].PutValue(“North”); sheet.Cells[“B1”].PutValue(42); sheet.Zoom = 120; sheet.PageSetup.Orientation = PageOrientationType.Landscape;

This class provides 2 methods for working with Worksheet objects in .NET programs. Available methods include: Protect, Unprotect. All exported members are accessible to any .NET application after installing the Aspose.Cells FOSS for .NET package. Properties: AutoFilter, Cells, Charts, Comments, ConditionalFormattings, Hyperlinks, and 14 more.

Description

Worksheet is a class in the Aspose.Cells FOSS library for .NET that exposes 2 methods and 20 properties for programmatic use.

The class also provides the Cells property (gets the cells), the Hyperlinks property (gets the hyperlinks), the Validations property (gets the validations).

Properties

NameTypeAccessDescription
NamestringRead/WriteGets or sets the name.
VisibilityTypeVisibilityTypeRead/WriteGets or sets the visibility type.
TabColorColorRead/WriteGets or sets the tab color.
ShowGridlinesboolRead/WriteGets or sets the show gridlines.
ShowRowColumnHeadersboolRead/WriteGets or sets the show row column headers.
ShowZerosboolRead/WriteGets or sets the show zeros.
RightToLeftboolRead/WriteGets or sets the right to left.
ZoomintRead/WriteGets or sets the zoom.
CellsCellsReadGets the cells.
HyperlinksHyperlinkCollectionReadGets the hyperlinks.
ValidationsValidationCollectionReadGets the validations.
ConditionalFormattingsConditionalFormattingCollectionReadGets the conditional formattings.
PageSetupPageSetupReadGets the page setup.
ProtectionWorksheetProtectionReadGets the protection.
AutoFilterAutoFilterReadGets the auto filter.
ListObjectsListObjectCollectionReadGets the list objects.
PicturesPictureCollectionReadGets the pictures.
ShapesShapeCollectionReadGets the shapes.
ChartsChartCollectionReadGets the charts.
CommentsCommentCollectionReadGets the comments.

Methods

SignatureDescription
Protect()Marks the worksheet as protected using the current protection settings.
Unprotect()Clears worksheet protection and resets supported protection flags.

See Also

 English