Protection Protection Protection Interface

Definition

Represents the various types of protection options available for a worksheet.

public interface class Protection
[System.Runtime.InteropServices.Guid("00024467-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(2)]
public interface Protection
Public Interface Protection
Attributes

Remarks

Use the Protection property of the Worksheet object to return a Protection object.

Once a Protection object is returned, you can use the following properties to set or return protection options:

Properties

AllowDeletingColumns AllowDeletingColumns AllowDeletingColumns

Returns True if the deletion of columns is allowed on a protected worksheet.

AllowDeletingRows AllowDeletingRows AllowDeletingRows

Returns True if the deletion of rows is allowed on a protected worksheet.

AllowEditRanges AllowEditRanges AllowEditRanges

Returns an AllowEditRanges object.

AllowFiltering AllowFiltering AllowFiltering

Returns True if the user is allowed to make use of an AutoFilter that was created before the sheet was protected.

AllowFormattingCells AllowFormattingCells AllowFormattingCells

Returns True if the formatting of cells is allowed on a protected worksheet.

AllowFormattingColumns AllowFormattingColumns AllowFormattingColumns

Returns True if the formatting of columns is allowed on a protected worksheet.

AllowFormattingRows AllowFormattingRows AllowFormattingRows

Returns True if the formatting of rows is allowed on a protected worksheet.

AllowInsertingColumns AllowInsertingColumns AllowInsertingColumns

Returns True if the insertion of columns is allowed on a protected worksheet.

AllowInsertingHyperlinks AllowInsertingHyperlinks AllowInsertingHyperlinks

Returns True if the insertion of hyperlinks is allowed on a protected worksheet.

AllowInsertingRows AllowInsertingRows AllowInsertingRows

Returns True if the insertion of rows is allowed on a protected worksheet.

AllowSorting AllowSorting AllowSorting

Returns True if the sorting option is allowed on a protected worksheet.

AllowUsingPivotTables AllowUsingPivotTables AllowUsingPivotTables

Returns True if the user is allowed to manipulate pivot tables on a protected worksheet.

Applies to