Spread Windows Forms 6.0 Product Documentation
SetBounds(Int32,Int32,Int32,Int32) Method
See Also  Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > ElementWindowless Class > SetBounds Method : SetBounds(Int32,Int32,Int32,Int32) Method


x
X-coordinate of the top left corner of the bounding rectangle (integer)
y
Y-coordinate of the top left corner of the bounding rectangle (integer)
width
Number of pixels in the width of the bounding rectangle (integer)
height
Number of pixels in the height of the bounding rectangle (integer)

Glossary Item Box

Sets the bounds of the element to the location and size of the bounding rectangle of the specified dimensions (in integer values).

Syntax

Visual Basic (Declaration) 
Public Overloads Overridable Sub SetBounds( _
   ByVal x As Integer, _
   ByVal y As Integer, _
   ByVal width As Integer, _
   ByVal height As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As ElementWindowless
Dim x As Integer
Dim y As Integer
Dim width As Integer
Dim height As Integer
 
instance.SetBounds(x, y, width, height)
C# 
public virtual void SetBounds( 
   int x,
   int y,
   int width,
   int height
)

Parameters

x
X-coordinate of the top left corner of the bounding rectangle (integer)
y
Y-coordinate of the top left corner of the bounding rectangle (integer)
width
Number of pixels in the width of the bounding rectangle (integer)
height
Number of pixels in the height of the bounding rectangle (integer)

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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