次の方法で共有


AnalysisRegionBase.Union メソッド (Int32, Int32, Int32, Int32)

この AnalysisRegionBase の領域を、指定した四角形との結合により作成された領域に限定します。

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

構文

'宣言
Public Sub Union ( _
    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.Union(left, top, right, bottom)
public void Union(
    int left,
    int top,
    int right,
    int bottom
)
public:
void Union(
    int left, 
    int top, 
    int right, 
    int bottom
)
public void Union(
    int left,
    int top,
    int right,
    int bottom
)
public function Union(
    left : int, 
    top : int, 
    right : int, 
    bottom : int
)

パラメータ

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

解説

すべてのパラメータは、HIMETRIC 単位です。

いずれかの領域が無限の場合、新しい領域も無限になります。

この例では、ExcludeIntersect、および Union を使用して、theFirstAnalysisRegionBase という名前の既存の AnalysisRegionBase の領域を変更します。

' 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

参照

参照

AnalysisRegionBase クラス

AnalysisRegionBase メンバ

Union オーバーロード

System.Windows.Ink.AnalysisCore 名前空間

AnalysisRegionBase.Exclude

AnalysisRegionBase.Intersect