Skip to main content

Create(TPersistent,Integer,Integer) Constructor

Creates a new TcxSize class instance for storing dimensions.

Declaration

constructor Create(AOwner: TPersistent; ADefaultWidth: Integer = 0; ADefaultHeight: Integer = 0); reintroduce; overload;

Parameters

Name Type
AOwner TPersistent
ADefaultWidth Integer
ADefaultHeight Integer

Remarks

This constructor supports the internal infrastructure and is not intended to be used directly from your code.

The Create constructor is called internally by persistent option sets that implement visual object dimension settings. This constructor calls the inherited constructor and initializes the Width and Height properties (and thus, the Size.Width and Size.Height properties) to the values passed as the optional ADefaultWidth and ADefaultHeight parameters, respectively.

See Also