Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Updates the bounds of the control.
UpdateBounds(Int32, Int32, Int32, Int32) |
Updates the bounds of the control with the specified size and location. |
UpdateBounds() |
Updates the bounds of the control with the current size and location. |
UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32) |
Updates the bounds of the control with the specified size, location, and client size. |
Updates the bounds of the control with the specified size and location.
protected:
void UpdateBounds(int x, int y, int width, int height);
protected void UpdateBounds(int x, int y, int width, int height);
member this.UpdateBounds : int * int * int * int -> unit
Protected Sub UpdateBounds (x As Integer, y As Integer, width As Integer, height As Integer)
If the new Size of the control if different from the previous Size, the SizeChanged event is raised. Likewise, is the Location of the control changes, the LocationChanged event is raised.
Product | Versions |
---|---|
Updates the bounds of the control with the current size and location.
protected:
void UpdateBounds();
protected public:
void UpdateBounds();
protected void UpdateBounds();
protected internal void UpdateBounds();
member this.UpdateBounds : unit -> unit
Protected Sub UpdateBounds ()
Protected Friend Sub UpdateBounds ()
If the new Size of the control is different from the previous Size, the SizeChanged event is raised. Likewise, if the Location of the control changes, the LocationChanged event is raised.
Product | Versions |
---|---|
Updates the bounds of the control with the specified size, location, and client size.
protected:
void UpdateBounds(int x, int y, int width, int height, int clientWidth, int clientHeight);
protected void UpdateBounds(int x, int y, int width, int height, int clientWidth, int clientHeight);
member this.UpdateBounds : int * int * int * int * int * int -> unit
Protected Sub UpdateBounds (x As Integer, y As Integer, width As Integer, height As Integer, clientWidth As Integer, clientHeight As Integer)
If the new Size of the control is different from the previous Size, the SizeChanged event is raised. Likewise, if the Location of the control changes, the LocationChanged event is raised.
Product | Versions |
---|---|
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in