GxSize.CreateFromSize

Fore Syntax

CreateFromSize(Size: IGxSize);

Fore.NET Syntax

CreateFromSize(Size: Prognoz.Platform.Interop.Drawing.GxSize);

Parameters

Size. The size, based on which a new size is created.

Description

The CreateFromPoint constructor creates a new size that is the copy of the size passed by the Size parameter.

Fore Example

Function GetCopySize(SourceSize: IGxSize): IGxSize;
Var
    DestinationSize: IGxSize;
Begin
    DestinationSize := New GxSize.CreateFromSize(SourceSize);
    Return DestinationSize;
End Function GetCopySize;

This function returns the copy of the size passed as an input parameter.

Fore.NET Example

Imports Prognoz.Platform.Interop.Drawing;

Function GetCopySize(SourceSize: GxSize): GxSize;
Var
    DestinationSize: GxSize = New GxSizeClass();
Begin
    DestinationSize.CreateFromSize(SourceSize);
    Return DestinationSize;
End Function;

This function returns the copy of the size passed as an input parameter.

See also:

GxSize