[]
Sets the bounds of the element to the position and size of the bounding rectangle of the specified dimensions.
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 |
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 |
Sets the bounds of the element to the position and size of the specified bounding rectangle object.
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 |