Spread Windows Forms 9.0 Product Documentation
Bounds Property (SpreadView)
Example 


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)
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SpreadView Class
SpreadView Members

 

 


Copyright © GrapeCity, inc. All rights reserved.