相关文章推荐
风流倜傥的作业本  ·  js隐藏a标签-掘金·  1 年前    · 
正直的乌龙茶  ·  OpenMP 快速入门 - 掘金·  1 年前    · 
笑点低的荒野  ·  python ...·  2 年前    · 
怕考试的仙人球  ·  docker mysql Could ...·  2 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams
  • What's the difference between System.Drawing.Point and the System.Windows.Point ?
  • In what context should which one be used?
  • I'm working with WPF.

    System.Drawing.Point represents a GDI point and is used in Windows Forms. It can only hold integer values.

    WPF doesn't use GDI anymore, so it has its own System.Windows.Point type to represents a point, which can have non integer values.

    I know this question is old, but thought I would ask. If I want Point functionality, but I am using neither WPF nor Winforms, should I roll my own Point class? Or should I favor one of these two? Or, does it just not matter that much. Sperry May 25, 2014 at 16:41 @Sperry, in this case I would create my own class. It takes about 2 minutes, and it avoids adding a reference to an assembly you don't really need. Thomas Levesque May 25, 2014 at 21:15 Why the downvote? If you don't explain what you think is wrong, it can't improve the answer. Guffa Sep 24, 2013 at 22:18

    Thanks for contributing an answer to Stack Overflow!

    • Please be sure to answer the question . Provide details and share your research!

    But avoid

    • Asking for help, clarification, or responding to other answers.
    • Making statements based on opinion; back them up with references or personal experience.

    To learn more, see our tips on writing great answers .