Protection Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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:
- AllowDeletingColumns
- AllowDeletingRows
- AllowFiltering
- AllowFormattingCells
- AllowFormattingColumns
- AllowFormattingRows
- AllowInsertingColumns
- AllowInsertingHyperlinks
- AllowInsertingRows
- AllowSorting
- AllowUsingPivotTables
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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기