AnalysisRegion.GetBounds Method
Gets the bounding rectangle of the AnalysisRegion.
Namespace: System.Windows.Ink
Assembly: IAWinFX (in iawinfx.dll)
Syntax
'Declaration
Public Function GetBounds As Rect
'Usage
Dim instance As AnalysisRegion
Dim returnValue As Rect
returnValue = instance.GetBounds
public Rect GetBounds ()
public:
Rect GetBounds ()
public Rect GetBounds ()
public function GetBounds () : Rect
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; 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.
MessageBox.Show("The bounding rectangle of the AnalysisRegion is: " + _
theFirstAnalysisRegion.GetBounds().ToString())
// Display the bounds of an AnalysisRegion object.
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
System.Windows.Ink Namespace
System.Windows.Ink.AnalysisRegion.ToRegion
AnalysisRegion.GetRegionScans