Edytuj

Udostępnij za pośrednictwem


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

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

AllowDeletingRows

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

AllowEditRanges

Returns an AllowEditRanges object.

AllowFiltering

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

AllowFormattingCells

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

AllowFormattingColumns

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

AllowFormattingRows

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

AllowInsertingColumns

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

AllowInsertingHyperlinks

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

AllowInsertingRows

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

AllowSorting

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

AllowUsingPivotTables

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

Applies to