繁体   English   中英

直肠,在哪里?

[英]Rect, where is it?

这让我发疯,创建了新的控制台应用程序项目,然后

// adding it as reference of course
using System.Windows;

// somewhere in method
var rect = new Rect(1, 2, 3, 4); // no Rect

找不到类型或名称空间名称“ Rect”(是否缺少using指令或程序集引用?)

Rect会发生什么?

您应该添加WindowsBase.dll作为对项目的引用。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM