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 Go programs. Available methods include: Protect, Unprotect. All exported members are accessible to any Go application after adding the package via go get github.com/aspose-pdf-foss/aspose-pdf-foss-for-go. Properties: AutoFilter, Cells, Charts, Comments, ConditionalFormattings, Hyperlinks, and 14 more.

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