AnalysisRegionBase.Exclude Method (Int32, Int32, Int32, Int32)
Restricts the area of this AnalysisRegionBase to the portion of its area that does not intersect the specified rectangle.
Namespace: System.Windows.Ink.AnalysisCore
Assembly: IACore (in IACore.dll)
Syntax
'Declaration
Public Sub Exclude ( _
left As Integer, _
top As Integer, _
right As Integer, _
bottom As Integer _
)
'Usage
Dim instance As AnalysisRegionBase
Dim left As Integer
Dim top As Integer
Dim right As Integer
Dim bottom As Integer
instance.Exclude(left, top, right, bottom)
public void Exclude(
int left,
int top,
int right,
int bottom
)
public:
void Exclude(
int left,
int top,
int right,
int bottom
)
public function Exclude(
left : int,
top : int,
right : int,
bottom : int
)
Parameters
left
Type: System.Int32The left bound of the rectangle that describes the area to exclude from this AnalysisRegionBase.
top
Type: System.Int32The top bound of the rectangle that describes the area to exclude from this AnalysisRegionBase.
right
Type: System.Int32The right bound of the rectangle that describes the area to exclude from this AnalysisRegionBase.
bottom
Type: System.Int32The bottom bound of the rectangle that describes the area to exclude from this AnalysisRegionBase.
Remarks
All parameters are in HIMETRIC units.
If the two areas do not intersect, this AnalysisRegionBase is unchanged.
Examples
This example uses Exclude, Intersect, and Union to modify the area of an existing 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);
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0