如何正确地为pointf()添加值?在VB.NET上 [英] How to add value to pointf() correctly? On VB.NET

查看:487
本文介绍了如何正确地为pointf()添加值?在VB.NET上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何正确地向PointF()添加值?例如

  Dim  pts  as  PointF()





我尝试过的事情:



我试过这个:< pre lang =vb> pts = { PointF(x,y)}

但是我得到了System.ArgumentException:参数不是有效。

解决方案

试试这个...

  Dim  pts  As   PointF(X,Y)


How do I add a value to PointF()correctly ? like

Dim pts as PointF()



What I have tried:

I have tried this:

pts={New PointF(x,y)}

but I got "System.ArgumentException: Parameter is not valid".

解决方案

Try this...

Dim pts As New PointF(X, Y)


这篇关于如何正确地为pointf()添加值?在VB.NET上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆