Поделиться через


AnalysisRegion.GetRegionScans - метод

Обновлен: Ноябрь 2007

Returns an array of rectangles that defines the area of the AnalysisRegion.

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink.Analysis (в Microsoft.Ink.Analysis.dll)

Синтаксис

'Декларация
Public Function GetRegionScans As Rectangle()
'Применение
Dim instance As AnalysisRegion
Dim returnValue As Rectangle()

returnValue = instance.GetRegionScans()
public Rectangle[] GetRegionScans()
public:
array<Rectangle>^ GetRegionScans()
public Rectangle[] GetRegionScans()
public function GetRegionScans() : Rectangle[]

Возвращаемое значение

Тип: array<System.Drawing.Rectangle[]
An array of rectangles that defines the area of the AnalysisRegion.

Заметки

The areas of the rectangles are in ink space coordinates.

The union of the returned rectangles represents the area of the AnalysisRegion.

Примеры

This example shows two ways to get 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();

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

AnalysisRegion Класс

AnalysisRegion - члены

Microsoft.Ink - пространство имен

AnalysisRegion.GetBounds

AnalysisRegion.ToRegion