System.Windows.Forms.Control.Bounds Property

Gets or sets the size and location of the control including its nonclient elements, in pixels, relative to the parent control.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
public System.Drawing.Rectangle Bounds { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The bounds of the control include the nonclient elements such as scroll bars, borders, title bars, and menus. The Control.SetBoundsCore(int, int, int, int, BoundsSpecified) method is called to set the Control.Bounds property. The Control.Bounds property is not always changed through its set method so you should override the Control.SetBoundsCore(int, int, int, int, BoundsSpecified) method to ensure that your code is executed when the Control.Bounds property is set.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0