次の方法で共有


AnalysisRegionBase.IntersectsWith メソッド

AnalysisRegionBase の領域が、指定した四角形と交差するかどうかを調べます。

名前空間 :  System.Windows.Ink.AnalysisCore
アセンブリ :  IACore (IACore.dll 内)

構文

'宣言
Public Function IntersectsWith ( _
    left As Integer, _
    top As Integer, _
    right As Integer, _
    bottom As Integer _
) As Boolean
'使用
Dim instance As AnalysisRegionBase
Dim left As Integer
Dim top As Integer
Dim right As Integer
Dim bottom As Integer
Dim returnValue As Boolean

returnValue = instance.IntersectsWith(left, _
    top, right, bottom)
public bool IntersectsWith(
    int left,
    int top,
    int right,
    int bottom
)
public:
bool IntersectsWith(
    int left, 
    int top, 
    int right, 
    int bottom
)
public boolean IntersectsWith(
    int left,
    int top,
    int right,
    int bottom
)
public function IntersectsWith(
    left : int, 
    top : int, 
    right : int, 
    bottom : int
) : boolean

パラメータ

  • left
    型 : System.Int32
    インク空間座標における、比較する四角形の左側の境界。
  • top
    型 : System.Int32
    インク空間座標における、比較する四角形の上側の境界。
  • right
    型 : System.Int32
    インク空間座標における、比較する四角形の右側の境界。
  • bottom
    型 : System.Int32
    インク空間座標における、比較する四角形の下側の境界。

戻り値

型 : System.Boolean
すべてのパラメータは、HIMETRIC 単位です。
AnalysisRegionBase の領域が、指定した四角形と交差する場合は True。それ以外の場合は false。

解説

比較はインク空間座標において行われます。

次の例では、theFirstAnalysisRegionBase という名前の AnalysisRegionBase が、指定した四角形と交差するかどうかをテストします。

' Test for intersection between an AnalysisRegionBase and a rectangle.
If theFirstAnalysisRegionBase.IntersectsWith(50, 50, 100, 100) Then
    ' Insert code here.
End If
            // Test for intersection between an AnalysisRegionBase and a rectangle.
            if (theFirstAnalysisRegionBase.IntersectsWith(50, 50, 100, 100))
            {
                // Insert code here.
            }

プラットフォーム

Windows Vista, Windows XP SP2, Windows Server 2003

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 3.0

参照

参照

AnalysisRegionBase クラス

AnalysisRegionBase メンバ

System.Windows.Ink.AnalysisCore 名前空間