Visual Basic (Declaration) | |
---|---|
Protected Overrides Sub SetBoundsCore( _ ByVal x As Integer, _ ByVal y As Integer, _ ByVal width As Integer, _ ByVal height As Integer, _ ByVal specified As BoundsSpecified _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As EditBase Dim x As Integer Dim y As Integer Dim width As Integer Dim height As Integer Dim specified As BoundsSpecified instance.SetBoundsCore(x, y, width, height, specified) |
C# | |
---|---|
protected override void SetBoundsCore( int x, int y, int width, int height, BoundsSpecified specified ) |
Parameters
- x
- The new System.Windows.Forms.Control.Left property value of the control.
- y
- The new System.Windows.Forms.Control.Top property value of the control.
- width
- The new System.Windows.Forms.Control.Width property value of the control.
- height
- The new System.Windows.Forms.Control.Height property value of the control.
- specified
- A bitwise combination of the System.Windows.Forms.BoundsSpecified values.
The specified parameter represents the elements of the controls System.Windows.Forms.Control.Bounds changed by your application. For example, if you change the System.Drawing.Size of the control, the specified parameter value is the Size value of System.Windows.Forms.BoundsSpecified; however, if the Size is adjusted in response to the System.Windows.Forms.Control.Dock property being set, the specified parameter value is the None value of BoundsSpecified.
Notes to Inheritors:
When overriding SetBoundsCore in a derived class, be sure to call the base class's SetBoundsCore method to force the boundary of the control to change. Derived classes can add size restrictions to the SetBoundsCore method.
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8