GrapeCity.Xaml.Excel
SetProtect Method


GrapeCity.Excel Namespace > IExcelReader Interface : SetProtect Method
The zero based sheet index used to locate the IExcelWorksheet instance, if the passed value is -1, it will set the workbook protection state
A flag used to indicate the protection state
Set the protection state for a sheet or workbook
Syntax
'Declaration
 
Sub SetProtect( _
   ByVal sheet As Short, _
   ByVal isProtect As Boolean _
) 
'Usage
 
Dim instance As IExcelReader
Dim sheet As Short
Dim isProtect As Boolean
 
instance.SetProtect(sheet, isProtect)
void SetProtect( 
   short sheet,
   bool isProtect
)

Parameters

sheet
The zero based sheet index used to locate the IExcelWorksheet instance, if the passed value is -1, it will set the workbook protection state
isProtect
A flag used to indicate the protection state
See Also

Reference

IExcelReader Interface
IExcelReader Members