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 function GetBounds() : Rect
Return Value
Type: System.Windows.Rect
The bounding rectangle of the AnalysisRegion defined using 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 define the MinValue, [whereas the]Width and Height properties define the 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, named 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 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
AnalysisRegionToRegion