[]
        
(Showing Draft Content)

GrapeCity.Win.Spread.InputMan.CellType.EditBase.SetBoundsCore

SetBoundsCore Method

SetBoundsCore(int, int, int, int, BoundsSpecified)

Sets the specified boundary of the EditBase control.

Declaration
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
Protected Overrides Sub SetBoundsCore(x As Integer, y As Integer, width As Integer, height As Integer, specified As BoundsSpecified)
Parameters
Type Name Description
int x

The new Left property value of the control.

int y

The new Top property value of the control.

int width

The new Width property value of the control.

int height

The new Height property value of the control.

BoundsSpecified specified

A bitwise combination of the BoundsSpecified values.

Overrides
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 Height, Width, X, or Y properties of the 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 Bounds changed by your application. For example, if you change the Size of the control, the specified parameter value is the Size value of BoundsSpecified; however, if the Size is adjusted in response to the 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.