Compartir a través de


AnalysisRegion.GetBounds Method

Gets the bounding rectangle of the AnalysisRegion.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in microsoft.ink.analysis.dll)

Syntax

'Declaration
Public Function GetBounds As Rectangle
'Usage
Dim instance As AnalysisRegion
Dim returnValue As Rectangle

returnValue = instance.GetBounds
public Rectangle GetBounds ()
public:
Rectangle GetBounds ()
public Rectangle GetBounds ()
public function GetBounds () : Rectangle
Not applicable.

Return Value

The bounding rectangle of the AnalysisRegion in ink space coordinates.

Remarks

The bounds are in ink space coordinates.

If the AnalysisRegion represents an infinite area, the Top and Left properties of the returned Rectangle are MinValue / 2; and the Width and Height properties are MaxValue.

If the AnalysisRegion represents an empty area, the Top, Left, Width, and Height properties of the rectangle are 0.

Example

This example shows how to access the GetBounds property of an AnalysisRegion, theFirstAnalysisRegion.

' Display the bounds of an AnalysisRegion object.
System.Windows.Forms.MessageBox.Show( _
    "The bounding rectangle of the AnalysisRegion is: " _
    + theFirstAnalysisRegion.GetBounds().ToString())
// Display the bounds of an AnalysisRegion object.
System.Windows.Forms.MessageBox.Show(
    "The bounding rectangle of the AnalysisRegion is: "
    + theFirstAnalysisRegion.GetBounds().ToString());

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
Microsoft.Ink Namespace
AnalysisRegion.ToRegion
AnalysisRegion.GetRegionScans