Represents the various types of protection options available for a worksheet.
For a list of all members of this type, see IProtection Members.
[Visual Basic] Public Interface IProtection [C#] public interface IProtection [C++] public __gc __interface IProtection [JScript] public interface IProtection
Use Protection property to return IProtection interface
This example changes the protection options for sheet one
[C#]
book.Worksheets[1].Protection.AllowDeletingColumns = true;
[Visual Basic]
book.Worksheets(i).Protection.AllowDeletingColumns = True
[C++]
book->Worksheets->Item[i]->Protection->AllowDeletingColumns = true;
Namespace: NativeExcel
Assembly: NativeExcel (in NativeExcel.dll)
IProtection Members | NativeExcel Namespace | Protection Property