Cannot find "Point" in System.Drawing

As I know, Point exist in the System.Drawing namespace , but Visual Studio cannot find it.

using System.Drawing;
class Flower
{
    public Point Location { get; private set; }
}

Error: Cannot find type name or dot namespace

Edit 1: .Net 4.5.1

+2
source share
2 answers

Right-click in Solution Explorer in the Project entry Referencesand selectAdd Reference...

Context menu

Make sure that you look in the section "Assembly assemblies →", then find and check the box for System.Drawing, then click "OK".

References

Here you can use System.Drawing.Pointin your code.

+6
source

, System.Drawing . , , , , , Windows Forms, System.Drawing . , Console App, Class Library WPF, , .

+3

All Articles