Partager via


_Worksheet.ProtectContents Property

True if the contents of the sheet are protected. For a chart, this protects the entire chart. For a worksheet, this protects the individual cells. Read-only Boolean.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
ReadOnly Property ProtectContents As Boolean
    Get
'Usage
Dim instance As _Worksheet
Dim value As Boolean

value = instance.ProtectContents
bool ProtectContents { get; }

Property Value

Type: System.Boolean

See Also

Reference

_Worksheet Interface

_Worksheet Members

Microsoft.Office.Interop.Excel Namespace