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


AnalysisRegion.GetBounds - метод

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

Gets the bounding rectangle of the AnalysisRegion.

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

Синтаксис

'Декларация
Public Function GetBounds As Rect
'Применение
Dim instance As AnalysisRegion
Dim returnValue As Rect

returnValue = instance.GetBounds()
public Rect GetBounds()
public:
Rect GetBounds()
public Rect GetBounds()
public function GetBounds() : Rect

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

Тип: System.Windows.Rect
The bounding rectangle of the AnalysisRegion defined using ink space coordinates.

Заметки

The bounds are in ink space coordinates.

If the AnalysisRegion represents an infinite area, the Top and Left properties of the returned Rectangle define the MinValue, [whereas the]Width and Height properties define the MaxValue.

If the AnalysisRegion represents an empty area, the Top, Left, Width, and Height properties of the rectangle are 0.

Примеры

This example shows how to access the GetBounds property of an AnalysisRegion, named theFirstAnalysisRegion.

' Display the bounds of an AnalysisRegion object.
MessageBox.Show("The bounding rectangle of the AnalysisRegion is: " + _
    theFirstAnalysisRegion.GetBounds().ToString())
// Display the bounds of an AnalysisRegion object.
MessageBox.Show(
    "The bounding rectangle of the AnalysisRegion is: "
    + theFirstAnalysisRegion.GetBounds().ToString());

Платформы

Windows Vista

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

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

.NET Framework

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

См. также

Ссылки

AnalysisRegion Класс

AnalysisRegion - члены

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

AnalysisRegionToRegion()

AnalysisRegion.GetRegionScans