RectHelper.GetIsEmpty(Rect) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回指定的 Rect 是否等效于 空Rect。 C# 和 Microsoft Visual Basic 代码应改用 Rect.IsEmpty 。
public:
static bool GetIsEmpty(Rect target);
static bool GetIsEmpty(Rect const& target);
public static bool GetIsEmpty(Rect target);
function getIsEmpty(target)
Public Shared Function GetIsEmpty (target As Rect) As Boolean
参数
返回
Boolean
bool
如果指定的 Rect 等效于空Rect,则为 true;否则为 false。
注解
请勿使用此方法测试零区域;带零区域的矩形不一定是 空 矩形。 有关详细信息,请参阅 Empty 属性。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈