...
Introducedin | ||
---|---|---|
|
...
|
Description |
---|
Excerpt |
---|
A |
Signature | ||||
---|---|---|---|---|
| ||||
public sealed class SheetProtection
{signature}{signature: |
Signature | ||||||
---|---|---|---|---|---|---|
| }
| |||||
Public NotInheritable Class SheetProtection
{signature}
{remarks}
In a new workbook, [AllowSelectLockedCells|SheetProtection.AllowSelectLockedCells] and [AllowSelectUnlockedCells|SheetProtection.AllowSelectUnlockedCells] default to {{true}}. The rest of the properties default to {{false}}.
The {{SheetProtection}} properties will only take effect if the worksheet is protected. Worksheets can be protected with [EW8: |
Remarks |
---|
In a new workbook, AllowSelectLockedCells and AllowSelectUnlockedCells default to The . If the worksheet is not protected, the values of the properties will persist, but will not have an effect. {remarks} {example}{code:csharp|title=C#} |
Example | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Properties |
---|
Name | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
|