この AnalysisRegionBase の領域を、指定した四角形との交差により作成された領域に限定します。
名前空間 : System.Windows.Ink.AnalysisCore
アセンブリ : IACore (IACore.dll 内)
構文
'宣言
Public Sub Intersect ( _
left As Integer, _
top As Integer, _
right As Integer, _
bottom As Integer _
)
'使用
Dim instance As AnalysisRegionBase
Dim left As Integer
Dim top As Integer
Dim right As Integer
Dim bottom As Integer
instance.Intersect(left, top, right, bottom)
public void Intersect(
int left,
int top,
int right,
int bottom
)
public:
void Intersect(
int left,
int top,
int right,
int bottom
)
public void Intersect(
int left,
int top,
int right,
int bottom
)
public function Intersect(
left : int,
top : int,
right : int,
bottom : int
)
パラメータ
- left
型 : System.Int32
インク空間座標における、交差する四角形の左側の境界。
- top
型 : System.Int32
インク空間座標における、交差する四角形の上側の境界。
- right
型 : System.Int32
インク空間座標における、交差する四角形の右側の境界。
- bottom
型 : System.Int32
インク空間座標における、交差する四角形の下側の境界。
解説
すべてのパラメータは、インク空間座標における値です。
2 つの領域が交差しない場合、新しい領域は空になります。
例
この例では、Exclude、Intersect および Union を使用して、既存の AnalysisRegionBase、theFirstAnalysisRegionBase の領域を変更します。
' Extend an AnalysisRegionBase using the Union method and
' an AnalysisRegionBase.
theFirstAnalysisRegionBase.Union(theSecondAnalysisRegionBase)
' Extend an AnalysisRegionBase using the Union method and a rectangle.
theFirstAnalysisRegionBase.Union(0, 500, 3000, 3500)
' Restrict an AnalysisRegionBase using the Intersect method and
' an AnalysisRegionBase.
theFirstAnalysisRegionBase.Intersect(theSecondAnalysisRegionBase)
' Restrict an AnalysisRegionBase using the Intersect method and a rectangle.
theFirstAnalysisRegionBase.Intersect(1000, 1000, 5000, 5000)
' Restrict an AnalysisRegionBase using the Exclude method and
' an AnalysisRegionBase.
theFirstAnalysisRegionBase.Exclude(theSecondAnalysisRegionBase)
' Modify an AnalysisRegionBase using the Exclude method and a rectangle.
theFirstAnalysisRegionBase.Exclude(1500, 1500, 2500, 2500)
// Extend an AnalysisRegionBase using the Union method and
// an AnalysisRegionBase.
theFirstAnalysisRegionBase.Union(theSecondAnalysisRegionBase);
// Extend an AnalysisRegionBase using the Union method and a rectangle.
theFirstAnalysisRegionBase.Union(0, 500, 3000, 3500);
// Restrict an AnalysisRegionBase using the Intersect method and
// an AnalysisRegionBase.
theFirstAnalysisRegionBase.Intersect(theSecondAnalysisRegionBase);
// Restrict an AnalysisRegionBase using the Intersect method and a rectangle.
theFirstAnalysisRegionBase.Intersect(1000, 1000, 5000, 5000);
// Restrict an AnalysisRegionBase using the Exclude method and
// an AnalysisRegionBase.
theFirstAnalysisRegionBase.Exclude(theSecondAnalysisRegionBase);
// Modify an AnalysisRegionBase using the Exclude method and a rectangle.
theFirstAnalysisRegionBase.Exclude(1500, 1500, 2500, 2500);
プラットフォーム
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 3.0