Share via


AnalysisRegion.IsEmpty Property

Gets a Boolean value that indicates whether the AnalysisRegion represents an empty region.

Namespace:  System.Windows.Ink
Assembly:  IAWinFX (in IAWinFX.dll)

Syntax

'Declaration
Public ReadOnly Property IsEmpty As Boolean
'Usage
Dim instance As AnalysisRegion 
Dim value As Boolean 

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

Property Value

Type: System.Boolean
true if the represented region is empty; otherwise, false.

Examples

The following example tests the extent of the area represented by the AnalysisRegion, named 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.
}

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

AnalysisRegion Class

AnalysisRegion Members

System.Windows.Ink Namespace

AnalysisRegion.IsInfinite

AnalysisRegion.MakeEmpty

AnalysisRegion.MakeInfinite