Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SpreadView Class / Bounds Property
Example


In This Topic
    Bounds Property (SpreadView)
    In This Topic
    Gets the size and location of the view.
    Syntax
    'Declaration
     
    Public ReadOnly Property Bounds As Rectangle
    'Usage
     
    Dim instance As SpreadView
    Dim value As Rectangle
     
    value = instance.Bounds
    public Rectangle Bounds {get;}

    Property Value

    Rectangle object that sets the bounds of the view
    Example
    This example uses the Bounds property.
    FarPoint.Win.Spread.SpreadView sv = fpSpread1.GetRootWorkbook();
    Rectangle rect = sv.Bounds;
    listBox1.Items.Add("Left = " + rect.Left);
    listBox1.Items.Add("Top = " + rect.Top);
    listBox1.Items.Add("Width = " + rect.Width);
    listBox1.Items.Add("Height = " + rect.Height);
    Dim sv As FarPoint.Win.Spread.SpreadView = FpSpread1.GetRootWorkbook
    Dim rect As Rectangle = sv.Bounds
    ListBox1.Items.Add("Left = " & rect.Left)
    ListBox1.Items.Add("Top = " & rect.Top)
    ListBox1.Items.Add("Width = " & rect.Width)
    ListBox1.Items.Add("Height = " & rect.Height)
    See Also