[]
Sets the bounds of the object to the specified position and size.
public override void SetBounds(int x, int y, int width, int height)
Public Overrides Sub SetBounds(x As Integer, y As Integer, width As Integer, height As Integer)
Type | Name | Description |
---|---|---|
int | x | X-coordinate for bounding rectangle's top-left corner |
int | y | Y-coordinate for bounding rectangle's top-left corner |
int | width | Width of bounding rectangle in pixels |
int | height | Height of bounding rectangle in pixels |
Sets the bounds of the element to the location and size of the specified bounding rectangle object (with integer values).
public override void SetBounds(Rectangle rectInput)
Public Overrides 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 override void SetBounds(RectangleF rectInput)
Public Overrides Sub SetBounds(rectInput As RectangleF)
Type | Name | Description |
---|---|---|
RectangleF | rectInput | Rectangle object that contains the bounding rectangle in floating-point dimensions |