Returns an IProtection interface that represents the various types of protection options available for a worksheet.
[Visual Basic] Property ReadOnly Protection As IProtection [C#] IProtection Protection { get; } [C++] __property IProtection* get_Protection(); [JScript] function get Protection() : IProtection
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;
IWorksheet Interface | NativeExcel Namespace