Size.IsEmpty 属性

定义

测试此 Size 结构的宽度和高度是否为 0。Tests whether this Size structure has width and height of 0.

public:
 property bool IsEmpty { bool get(); };
public bool IsEmpty { get; }
[System.ComponentModel.Browsable(false)]
public bool IsEmpty { get; }
member this.IsEmpty : bool
[<System.ComponentModel.Browsable(false)>]
member this.IsEmpty : bool
Public ReadOnly Property IsEmpty As Boolean

属性值

Boolean

如果此 Size 结构的宽度和高度均为 0,此属性将返回 true;否则将返回 falseThis property returns true when this Size structure has both a width and height of 0; otherwise, false.

属性

适用于