Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.DrawingSpace Namespace / PSObject Class / OriginalBounds Property
Example


In This Topic
    OriginalBounds Property
    In This Topic
    Gets the original bounds.
    Syntax
    'Declaration
     
    Public ReadOnly Property OriginalBounds As RectangleF
    'Usage
     
    Dim instance As PSObject
    Dim value As RectangleF
     
    value = instance.OriginalBounds
    public RectangleF OriginalBounds {get;}

    Property Value

    The original bounds.
    Example
    This example uses the OriginalBounds property.
    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);
    listBox1.Items.Add(test.OriginalBounds.ToString());
    fpSpread1.Sheets(0).Cells(0, 0).Text = "test"
    Dim test As New FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape()
    test.Formula = "A1:A5"
    fpSpread1.Sheets(0).AddShape(test, 2, 1)
    ListBox1.Items.Add(test.OriginalBounds.ToString())
    See Also