GrapeCity.Xaml.SpreadSheet.UI
Protect Property (GcSpreadSheet)
Example 


GrapeCity.Xaml.SpreadSheet.UI Namespace > GcSpreadSheet Class : Protect Property
Gets or sets whether this workbook is protected.
Syntax
'Declaration
 
<DefaultValueAttribute()>
<CategoryAttribute()>
Public Property Protect As Boolean
'Usage
 
Dim instance As GcSpreadSheet
Dim value As Boolean
 
instance.Protect = value
 
value = instance.Protect
[DefaultValue()]
[Category()]
public bool Protect {get; set;}
Example
This example sets the Protect property.
gcSpreadSheet1.ActiveSheetIndex = 0;
gcSpreadSheet1.CanUserEditFormula = true;
gcSpreadSheet1.GridLineColor = Windows.UI.Colors.DarkSeaGreen;
gcSpreadSheet1.Protect = false;
GcSpreadSheet1.ActiveSheetIndex = 0
GcSpreadSheet1.CanUserEditFormula = True
GcSpreadSheet1.GridLineColor = Windows.UI.Colors.DarkSeaGreen
GcSpreadSheet1.Protect = False
See Also

Reference

GcSpreadSheet Class
GcSpreadSheet Members