GxSizeF.CreateFromSize

Fore Syntax

CreateFromSize(Size: IGxSizeF);

Fore.NET Syntax

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

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 GetCopySizeF(SourceSize: IGxSizeF): IGxSizeF;
Var
    DestinationSize: IGxSizeF;
Begin
    DestinationSize := New GxSizeF.CreateFromSize(SourceSize);
    Return DestinationSize;
End Function GetCopySizeF;

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

Fore.NET Example

Imports Prognoz.Platform.Interop.Drawing;

Function GetCopySizeF(SourceSize: GxSizeF): GxSizeF;
Var
    DestinationSize: GxSizeF = New GxSizeFClass();
Begin
    DestinationSize.CreateFromSize(SourceSize);
    Return DestinationSize;
End Function;

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

See also:

GxSizeF