将此 AnalysisRegionBase 的区域限制为其区域与指定矩形不相交的部分。
命名空间: System.Windows.Ink.AnalysisCore
程序集: IACore(在 IACore.dll 中)
语法
声明
Public Sub Exclude ( _
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.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 void Exclude(
int left,
int top,
int right,
int bottom
)
public function Exclude(
left : int,
top : int,
right : int,
bottom : int
)
参数
- left
类型:System.Int32
描述要从此 AnalysisRegionBase 排除的区域的矩形的左边界。
- top
类型:System.Int32
描述要从此 AnalysisRegionBase 排除的区域的矩形的上边界。
- right
类型:System.Int32
描述要从此 AnalysisRegionBase 排除的区域的矩形的右边界。
- bottom
类型:System.Int32
描述要从此 AnalysisRegionBase 排除的区域的矩形的下边界。
备注
所有参数都采用 HIMETRIC 单位。
如果两个区域不相交,则此 AnalysisRegionBase 不变。
示例
此示例使用 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