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 Region ToRegion ()
public function ToRegion () : Region
Not applicable.
Return Value
The area of the AnalysisRegion as a Region.
Remarks
The Region is in ink space coordinates.
Example
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 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
Microsoft.Ink Namespace
AnalysisRegion.GetBounds
AnalysisRegion.GetRegionScans