共用方式為


AnalysisRegion.GetBounds 方法

取得 AnalysisRegion 的週框 (Bounding Rectangle)。

命名空間:  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
AnalysisRegion 的週框 (以筆墨空間座標定義)。

備註

界限會以筆墨空間座標表示。

如果 AnalysisRegion 表示無限區域,則所傳回之 RectangleTopLeft 屬性會定義 MinValue,而 WidthHeight 屬性則會定義 MaxValue

如果 AnalysisRegion 表示空白區域,則矩形的 TopLeftWidthHeight 屬性會是 0。

範例

這個範例會示範如何存取 AnalysisRegion (名為 theFirstAnalysisRegion) 的 GetBounds 屬性。

' 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