Partager via


AnalysisRegion.IsEmpty Property

Gets a value indicating whether the AnalysisRegion represents an empty region.

Namespace: System.Windows.Ink
Assembly: IAWinFX (in iawinfx.dll)
XML Namespace:  https://schemas.microsoft.com/winfx/2006/xaml/presentation

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 ();
}
/** @property */
public boolean get_IsEmpty ()
public function get IsEmpty () : boolean
Not applicable.

Property Value

true if the represented region is empty; otherwise, false.

Example

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

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

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