Search code examples
.nettypesdelphi-prismwin32-process

Replacement for TRect and TPoint in Delphi Prism


What do you replace TRect and TPoint with from Delphi Win32 code to Delphi Prism code?


Solution

  • You have two options depending of your needs

    using Rectangle and Point from the System.Drawing namespace Since Net 1.0

    TRect -> System.Drawing.Rectangle

    TPoint -> System.Drawing.Point

    using Rect and Point from the System.Windows namespace Since Net 3.0

    TRect -> System.Windows.Rect

    TPoint -> System.Windows.Point