Spread Windows Forms 12.0 Product Documentation
SetBoundsCore Method


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > EditBase Class : SetBoundsCore Method
The new System.Windows.Forms.Control.Left property value of the control.
The new System.Windows.Forms.Control.Top property value of the control.
The new System.Windows.Forms.Control.Width property value of the control.
The new System.Windows.Forms.Control.Height property value of the control.
A bitwise combination of the System.Windows.Forms.BoundsSpecified values.
Sets the specified boundary of the EditBase control.
Syntax
'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 _
) 
'Usage
 
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)
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.
Remarks
Typically, the parameters that correspond to the boundary, not included in the specified parameter, are passed in with their current values. For example, the System.Windows.Forms.Control.Height, System.Windows.Forms.Control.Width, System.Drawing.Point.X, or System.Drawing.Point.Y properties of the System.Windows.Forms.Control.Location property can be passed in with a reference to the current instance of the control; however, all values passed in are honored and applied to the control.

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.

See Also

Reference

EditBase Class
EditBase Members