Partager via


Slicer.Locked Property

Gets or sets whether the specified slicer can be modified when the sheet that contains it is protected.

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

Syntax

'Declaration
Property Locked As Boolean
    Get
    Set
'Usage
Dim instance As Slicer
Dim value As Boolean

value = instance.Locked

instance.Locked = value
bool Locked { get; set; }

Property Value

Type: System.Boolean
true if the specified slicer can be modified when the sheet that contains it is protected; otherwise, false. The default is true

Remarks

Read/write.

true if the slicer is locked when the sheet is protected. false if the slicer can be modified when the sheet is protected. The default value is true.

See Also

Reference

Slicer Interface

Slicer Members

Microsoft.Office.Interop.Excel Namespace