Spread WPF Documentation
Protect Property (GcSpreadSheet)
Example 


GrapeCity.Windows.SpreadSheet.UI Namespace > GcSpreadSheet Class : Protect Property
Gets or sets whether this workbook is protected.
Syntax
'Declaration
 
<System.ComponentModel.CategoryAttribute("Spread Workbook")>
<System.ComponentModel.DefaultValueAttribute()>
Public Property Protect As System.Boolean
'Usage
 
Dim instance As GcSpreadSheet
Dim value As System.Boolean
 
instance.Protect = value
 
value = instance.Protect
[System.ComponentModel.Category("Spread Workbook")]
[System.ComponentModel.DefaultValue()]
public System.bool Protect {get; set;}
Example
This example sets the Protect property.
gcSpreadSheet1.ActiveSheetIndex = 0;
gcSpreadSheet1.CanUserEditFormula = true;
\\Silverlight
\\gcSpreadSheet1.GridLineColor = Color.FromArgb(100, 100, 50, 10);
\\WPF
\\gcSpreadSheet1.GridLineColor = Color.FromRgb(100, 50, 10);
gcSpreadSheet1.Protect = false;
GcSpreadSheet1.ActiveSheetIndex = 0
GcSpreadSheet1.CanUserEditFormula = True
'Silverlight
'GcSpreadSheet1.GridLineColor = Color.FromArgb(100, 100, 50, 10)
'WPF
'GcSpreadSheet1.GridLineColor = Color.FromRgb(100, 50, 10)
GcSpreadSheet1.Protect = False
See Also

Reference

GcSpreadSheet Class
GcSpreadSheet Members