Spread Windows Forms 7.0 Product Documentation
Bounds Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SpreadView Class : Bounds Property


Glossary Item Box

Gets the size and location of the view.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Bounds As Rectangle
Visual Basic (Usage)Copy Code
Dim instance As SpreadView
Dim value As Rectangle
 
value = instance.Bounds
C# 
public Rectangle Bounds {get;}

Property Value

Rectangle object that sets the bounds of the view

Example

This example uses the Bounds property.
C#Copy Code
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);
VB.NETCopy Code
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 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.