是“界限”吗? Visual Basic 中的属性已弃用?

发布于 2025-01-15 16:57:22 字数 431 浏览 6 评论 0原文

它可能就在我眼皮子底下,但我一生都找不到任何与此相关的有用信息:在 Visual Studio 2019 中,我可以找到并使用 PictureBox 的 .bounds 属性。在 Visual Studio 2022 中它不存在。仅显示 .setBounds 方法,但这没有帮助。 我的问题很简单:我找不到它的原因是什么?

它是否与

  • 从 VS2019 到 VS2022的较新 .NET 版本
  • 升级
  • 由于某种原因已弃用有关
  • 或者我只是愚蠢/盲目......

如果我不愚蠢/盲目;如果 - 例如 - 我想检查一些边框碰撞,我是否必须手动解决“PictureBox.Bounds.IntersectsWith”?

尽管可能会出现全球性的捂脸,但如果有人能回答这个问题,我将不胜感激;)

Its probably right under my nose, but for the life of me I couldnt find anything helpful concerning this: In Visual Studio 2019 I can find and use the .bounds property of a PictureBox. In Visual Studio 2022 its just not there. Only the .setBounds method shows up, but thats not helpful.
My question is simple: What is the reason that i cant find it?

Does it have sth to do with

  • A newer .NET Version
  • Upgrade from VS2019 to VS2022
  • Deprecated for some reason
  • Or am I just stupid/blind...

And if Im NOT stupid/blind; do I have to manually work around "PictureBox.Bounds.IntersectsWith" if - for example - I want to check for some border collision?

Despite the probable global facepalming it would be much appreciated If someone could answer this;)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文