共用方式為


AnalysisRegion.IsEmpty 屬性

取得布林值,這個值表示 AnalysisRegion 是否代表空白區域。

命名空間:  System.Windows.Ink
組件:  IAWinFX (在 IAWinFX.dll 中)

語法

'宣告
Public ReadOnly Property IsEmpty As Boolean
'用途
Dim instance As AnalysisRegion
Dim value As Boolean

value = instance.IsEmpty
public bool IsEmpty { get; }
public:
property bool IsEmpty {
    bool get ();
}
/** @property */
public boolean get_IsEmpty()
public function get IsEmpty () : boolean

屬性值

型別:System.Boolean
如果所表示的區域是空白,則為 true,否則為 false。

範例

下列範例會測試 AnalysisRegion (名為 theFirstAnalysisRegion) 所表示區域的範圍。

' Check whether the AnalysisRegionBase is empty, infinite, or neither.
If theFirstAnalysisRegion.IsEmpty Then
    ' Insert code here for an empty AnalysisRegionBase.
ElseIf theFirstAnalysisRegion.IsInfinite Then
    ' Insert code here for an infinite AnalysisRegionBase.
Else
    ' Insert code here for a non-empty, finite AnalysisRegionBase.
End If
// Check whether the AnalysisRegionBase is empty, infinite, or neither.
if (theFirstAnalysisRegion.IsEmpty)
{
    // Insert code here for an empty AnalysisRegionBase.
}
else if (theFirstAnalysisRegion.IsInfinite)
{
    // Insert code here for an infinite AnalysisRegionBase.
}
else
{
    // Insert code here for a non-empty, finite AnalysisRegionBase.
}

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求

版本資訊

.NET Framework

支援版本:3.0

請參閱

參考

AnalysisRegion 類別

AnalysisRegion 成員

System.Windows.Ink 命名空間

AnalysisRegion.IsInfinite

AnalysisRegion.MakeEmpty

AnalysisRegion.MakeInfinite