Sdílet prostřednictvím


AnalysisRegionBase.GetBounds Method

Gets the bounding rectangle of the AnalysisRegionBase.

Namespace:  System.Windows.Ink.AnalysisCore
Assembly:  IACore (in IACore.dll)

Syntax

'Declaration
Public Function GetBounds As Integer()
'Usage
Dim instance As AnalysisRegionBase 
Dim returnValue As Integer()

returnValue = instance.GetBounds()
public int[] GetBounds()
public:
array<int>^ GetBounds()
public function GetBounds() : int[]

Return Value

Type: array<System.Int32[]
The left, top, right, and bottom bounds of the AnalysisRegionBase in HIMETRIC units.

Remarks

The bounds are in ink-space coordinates.

If the AnalysisRegionBase represents an infinite area, the left and top bounds are System.Int32.MinValue; and the right and bottom bounds are System.Int32.MaxValue.

If the AnalysisRegionBase represents an empty area, all the bounds of the rectangle are 0.

Examples

This example shows two ways to get the area represented by the AnalysisRegionBase, theFirstAnalysisRegionBase.

' Get the area of the AnalysisRegionBase as an array of rectangles. 
Dim theArea As Integer() = theFirstAnalysisRegionBase.GetRegionScans()

' Get the bounds of an AnalysisRegionBase. 
Dim theBounds As Integer() = theFirstAnalysisRegionBase.GetBounds()
// Get the area of the AnalysisRegionBase as an array of rectangles. 
int[] theArea =
    theFirstAnalysisRegionBase.GetRegionScans();

// Get the bounds of an AnalysisRegionBase. 
int[] theBounds = theFirstAnalysisRegionBase.GetBounds();

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

AnalysisRegionBase Class

AnalysisRegionBase Members

System.Windows.Ink.AnalysisCore Namespace

AnalysisRegionBase.GetRegionScans