Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win Namespace / ElementControl Class / SetBounds Method / SetBounds(Int32,Int32,Int32,Int32) Method
X-coordinate of the top left corner of the bounding rectangle
Y-coordinate of the top left corner of the bounding rectangle
Number of pixels in the width of the bounding rectangle
Number of pixels in the height of the bounding rectangle


In This Topic
    SetBounds(Int32,Int32,Int32,Int32) Method
    In This Topic
    Sets the bounds of the element to the position and size of the bounding rectangle of the specified dimensions.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Shadows Sub SetBounds( _
       ByVal x As Integer, _
       ByVal y As Integer, _
       ByVal width As Integer, _
       ByVal height As Integer _
    ) 
    'Usage
     
    
    Dim instance As ElementControl
    Dim x As Integer
    Dim y As Integer
    Dim width As Integer
    Dim height As Integer
     
    instance.SetBounds(x, y, width, height)
    public virtual new void SetBounds( 
       int x,
       int y,
       int width,
       int height
    )

    Parameters

    x
    X-coordinate of the top left corner of the bounding rectangle
    y
    Y-coordinate of the top left corner of the bounding rectangle
    width
    Number of pixels in the width of the bounding rectangle
    height
    Number of pixels in the height of the bounding rectangle
    See Also