Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / StyleInfo Class / ResetLocked Method

In This Topic
    ResetLocked Method (StyleInfo)
    In This Topic
    Resets the Locked property to its default value.
    Public Sub ResetLocked() 
    Dim instance As StyleInfo
    public void ResetLocked()
    This example uses the ResetLocked method.
    FarPoint.Web.Spread.StyleInfo Style = new FarPoint.Web.Spread.StyleInfo();
    Style.Margin = new FarPoint.Web.Spread.Inset(1, 1, 1, 1);
    Style.Locked = true;
    // Style.ResetLocked();
    // Style.ResetMargin();       
    FpSpread1.ActiveSheetView.SetStyleInfo(1, 1, Style);
    FpSpread1.ActiveSheetView.Cells[1, 1].Text = "Style";
    Dim Style As New FarPoint.Web.Spread.StyleInfo()
    Style.Margin = New FarPoint.Web.Spread.Inset(1, 1, 1, 1)
    Style.Locked = True
    FpSpread1.ActiveSheetView.SetStyleInfo(1, 1, Style)
    FpSpread1.ActiveSheetView.Cells(1, 1).Text = "Style"
    See Also