GxSize.Create

Fore Syntax

Create(Width: Integer; Height: Integer);

Fore.NET Syntax

Create(Width: Integer; Height: Integer);

Parameters

Width. Size height.

Height. Size width.

Description

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

Fore Example

Function GetSize(Width: Integer; Height: Integer): IGxSize;
Var
    OutSize: IGxSize;
Begin
    OutSize := New GxSize.Create(Width, Height);
    Return OutSize;
End Function GetSize;

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

Fore.NET Example

Imports Prognoz.Platform.Interop.Drawing;

Function GetSize(Width: Integer; Height: Integer): GxSize;
Var
    OutSize: GxSize = New GxSizeClass();
Begin
    OutSize.Create(Width, Height);
    Return OutSize;
End Function;

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

See also:

GxSize