GxSizeF.Create

Fore Syntax

Create(Width: Double; Height: Double);

Fore.NET Syntax

Create(Width: Double; Height: Double);

Parameters

Width. Size height.

Heigh. Size width.

Description

The Create constructor creates a new size with the specified values of width and height.

Fore Example

Function GetSizeF(Width: Double; Height: Double): IGxSizeF;
Var
    OutSize: IGxSizeF;
Begin
    OutSize := New GxSizeF.Create(Width, Height);
    Return OutSize;
End Function GetSizeF;

The function returns the new size, width and height of which are passed as input parameters.

Fore.NET Example

Imports Prognoz.Platform.Interop.Drawing;

Function GetSizeF(Width: Double; Height: Double): GxSizeF;
Var
    OutSize: GxSizeF = New GxSizeFClass();
Begin
    OutSize.Create(Width, Height);
    Return OutSize;
End Function;

The function returns the new size, width and height of which are passed as input parameters.

See also:

GxSizeF