Share via


AnalysisRegion Constructor (Rect)

Initializes a new instance of the AnalysisRegion class that represents the area within a rectangle.

Namespace:  System.Windows.Ink
Assembly:  IAWinFX (in IAWinFX.dll)

Syntax

'Declaration
Public Sub New ( _
    rectangle As Rect _
)
'Usage
Dim rectangle As Rect 

Dim instance As New AnalysisRegion(rectangle)
public AnalysisRegion(
    Rect rectangle
)
public:
AnalysisRegion(
    Rect rectangle
)
public function AnalysisRegion(
    rectangle : Rect
)

Parameters

Remarks

The AnalysisRegion constructor throws an ArgumentOutOfRangeException if rectangle has bounds outside of MinXY and MaxXY.

Examples

This example shows how to create an AnalysisRegion that represents a finite region.

' Create a finite AnalysisRegion. 
Dim theSecondAnalysisRegion As New AnalysisRegion(New Rect(100, 100, 200, 200))
// Create a finite AnalysisRegion.
AnalysisRegion theSecondAnalysisRegion =
    new AnalysisRegion(
        new Rect(100, 100, 200, 200));

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

AnalysisRegion Class

AnalysisRegion Members

AnalysisRegion Overload

System.Windows.Ink Namespace

AnalysisRegion.GetBounds