[]
        
(Showing Draft Content)

FarPoint.Win.ElementWindowless.SetBounds

SetBounds Method

SetBounds(int, int, int, int)

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

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 (integer)

int y

Y-coordinate of the top left corner of the bounding rectangle (integer)

int width

Number of pixels in the width of the bounding rectangle (integer)

int height

Number of pixels in the height of the bounding rectangle (integer)

SetBounds(Rectangle)

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

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 in integer dimensions

SetBounds(RectangleF)

Sets the bounds of the element to the location and size of the specified bounding rectangle object (with floating-point values).

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

Rectangle object that contains the bounding rectangle in floating-point dimensions