AnalysisRegion の外接する四角形を取得します。
名前空間 : Microsoft.Ink
アセンブリ : Microsoft.Ink.Analysis (Microsoft.Ink.Analysis.dll 内)
構文
'宣言
Public Function GetBounds As Rectangle
'使用
Dim instance As AnalysisRegion
Dim returnValue As Rectangle
returnValue = instance.GetBounds()
public Rectangle GetBounds()
public:
Rectangle GetBounds()
public Rectangle GetBounds()
public function GetBounds() : Rectangle
戻り値
型 : System.Drawing.Rectangle
インク空間座標内にある AnalysisRegion の外接する四角形。
解説
境界は、インク空間座標における境界です。
AnalysisRegion が無限領域を表す場合、返される Rectangle の Top プロパティおよび Left プロパティは MinValue / 2 で、Width プロパティおよび Height プロパティは MaxValue です。
AnalysisRegion が空の領域を表している場合、四角形の Top、Left、Width、および Height プロパティは 0 になります。
例
この例では、AnalysisRegion、theFirstAnalysisRegion の GetBounds プロパティにアクセスする方法を説明します。
' Display the bounds of an AnalysisRegion object.
System.Windows.Forms.MessageBox.Show( _
"The bounding rectangle of the AnalysisRegion is: " _
+ theFirstAnalysisRegion.GetBounds().ToString())
// Display the bounds of an AnalysisRegion object.
System.Windows.Forms.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