[]
Sets the bounds of the element to the location and size of the bounding rectangle of the specified dimensions (in integer values).
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)
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) |
Sets the bounds of the element to the location and size of the specified bounding rectangle object (with integer values).
public virtual void SetBounds(Rectangle rectInput)
Public Overridable Sub SetBounds(rectInput As Rectangle)
Type | Name | Description |
---|---|---|
Rectangle | rectInput | Rectangle object that contains the bounding rectangle in integer dimensions |
Sets the bounds of the element to the location and size of the specified bounding rectangle object (with floating-point values).
public virtual void SetBounds(RectangleF rectInput)
Public Overridable Sub SetBounds(rectInput As RectangleF)
Type | Name | Description |
---|---|---|
RectangleF | rectInput | Rectangle object that contains the bounding rectangle in floating-point dimensions |