IGxPoint.ToSize

Syntax

ToSize: IGxSize;

Description

The ToSize method transforms the point into the size.

Example

Sub UserProc;
Var
    Point: IGxPoint;
    Size: IGxSize;
Begin
    Point := New GxPoint.Create(1015);
    Size := Point.ToSize;
    Debug.WriteLine("Width: " + Size.Width.ToString + ". Height: " + Size.Height.ToString);
End Sub UserProc;

After executing the example an integer point is created. Then size is created based on the point. The obtained width and height of the size is displayed in the development environment console.

See also:

IGxPoint