Skip to main content

Create(Integer,Integer,Integer,Integer) Constructor

Creates a new region.

Declaration

constructor Create(ALeft: Integer; ATop: Integer; ARight: Integer; ABottom: Integer); overload;

Parameters

Name Type
ALeft Integer
ATop Integer
ARight Integer
ABottom Integer

Remarks

Call any of these overloaded constructor variants to create a region:

Overloaded Variant Description
1 This variant accepts a handle to an existing region as the AHandle parameter. The parameter value initializes the Handle property. Call this constructor variant to create a TcxRegion wrapper for an existing Windows API region.
2 This constructor variant accepts a TRect value as the ABounds parameter to create a new rectangular region.
3 This variant accepts no parameters and creates a new empty region.
4 This constructor variant is similar to the second variant but accepts the coordinates of the left-top and right-bottom corners of the bounding rectangle as the ALeft, ATop, ARight, and ABottom parameters.
See Also