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 function GetBounds() : Rectangle
Return Value
Type: System.Drawing.Rectangle
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.
Examples
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 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
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