AnalysisRegion.ToRegion Method
Returns the area of the AnalysisRegion as a Region.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)
Syntax
'Declaration
Public Function ToRegion As Region
'Usage
Dim instance As AnalysisRegion
Dim returnValue As Region
returnValue = instance.ToRegion()
public Region ToRegion()
public:
Region^ ToRegion()
public function ToRegion() : Region
Return Value
Type: System.Drawing.Region
The area of the AnalysisRegion as a Region.
Remarks
The Region is in ink space coordinates.
Examples
This example show two ways of getting the area represented by the AnalysisRegion, theSecondAnalysisRegion.
' Get an approximation of the AnalysisRegion as an array of rectangles.
Dim theArea As System.Drawing.Rectangle() = _
theSecondAnalysisRegion.GetRegionScans()
' Get a Region object for the area of the AnalysisRegion.
Dim theRegion As System.Drawing.Region = theSecondAnalysisRegion.ToRegion()
// Get the area of the AnalysisRegion as an array of rectangles.
System.Drawing.Rectangle[] theArea =
theSecondAnalysisRegion.GetRegionScans();
// Get the area of the AnalysisRegion as a region.
System.Drawing.Region theRegion = theSecondAnalysisRegion.ToRegion();
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