[]
        
(Showing Draft Content)

FarPoint.Win.ElementControl.SetBounds

SetBounds Method

SetBounds(int, int, int, int)

Sets the bounds of the element to the position and size of the bounding rectangle of the specified dimensions.

Declaration
public virtual void SetBounds(int x, int y, int width, int height)
Public Overridable Sub SetBounds(x As Integer, y As Integer, width As Integer, height As Integer)
Parameters
Type Name Description
int x

X-coordinate of the top left corner of the bounding rectangle

int y

Y-coordinate of the top left corner of the bounding rectangle

int width

Number of pixels in the width of the bounding rectangle

int height

Number of pixels in the height of the bounding rectangle

SetBounds(Rectangle)

Sets the bounds of the element to the position and size of the specified bounding rectangle object.

Declaration
public virtual void SetBounds(Rectangle rectInput)
Public Overridable Sub SetBounds(rectInput As Rectangle)
Parameters
Type Name Description
Rectangle rectInput

Rectangle object that contains the bounding rectangle