Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.DrawingSpace Namespace / SpreadCameraShape Class / ResetShape Method
Example


In This Topic
    ResetShape Method
    In This Topic
    Resets the shape of the object.
    Syntax
    'Declaration
     
    Public Overrides Sub ResetShape() 
    'Usage
     
    Dim instance As SpreadCameraShape
     
    instance.ResetShape()
    public override void ResetShape()
    Example
    This example uses the ResetShape method.
    fpSpread1.Sheets[0].Cells[0, 0].Text = "test";
    FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape test = new FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape();
    test.Formula = "A1:A5";
    fpSpread1.Sheets[0].AddShape(test, 2, 1);
    test.Scale(2, 2);
    test.ResetShape();
    fpSpread1.Sheets(0).Cells(0, 0).Text = "test"
    Dim test As New FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape()
    test.Formula = "A1:A5"
    test.Name = "rangeimage"
    fpSpread1.Sheets(0).AddShape(test, 2, 1)
    test.Scale(2, 2)
    test.ResetShape()
    
    See Also