GrapeCity.Xaml.SpreadSheet.Data
ResetLocked Method (Cell)
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > Cell Class : ResetLocked Method
Resets the locked state for the cell and causes the cell to inherit the locked state from the default cell.
Syntax
'Declaration
 
Public Sub ResetLocked() 
'Usage
 
Dim instance As Cell
 
instance.ResetLocked()
public void ResetLocked()
Example
This example uses the ResetLocked method.
gcSpreadSheet1.Sheets[0].Cells[1, 1].Locked = false;
gcSpreadSheet1.Sheets[0].Cells[1, 1].Text = "Locked";
gcSpreadSheet1.Sheets[0].Columns[3].Locked = false;
gcSpreadSheet1.Sheets[0].Rows[5].Locked = false;
gcSpreadSheet1.Protect = true;
gcSpreadSheet1.Sheets[0].Protect = true;

private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            gcSpreadSheet1.Sheets[0].Cells[1, 1].ResetLocked();
        }
GcSpreadSheet1.Sheets(0).Cells(1, 1).Locked = False
GcSpreadSheet1.Sheets(0).Cells(1, 1).Text = "Locked"
GcSpreadSheet1.Sheets(0).Columns(3).Locked = False
GcSpreadSheet1.Sheets(0).Rows(5).Locked = False
GcSpreadSheet1.Protect = True
GcSpreadSheet1.Sheets(0).Protect = True

Private Sub Button_Click_1(sender As Object, e As RoutedEventArgs)
GcSpreadSheet1.Sheets(0).Cells(1, 1).ResetLocked()
End Sub
See Also

Reference

Cell Class
Cell Members