AnalysisRegionBase.Intersect 方法 (AnalysisRegionBase)
将此 AnalysisRegionBase 的区域限制为它与指定的 AnalysisRegionBase 相交所形成的区域。
命名空间: System.Windows.Ink.AnalysisCore
程序集: IACore(在 IACore.dll 中)
语法
声明
Public Sub Intersect ( _
regionToIntersect As AnalysisRegionBase _
)
用法
Dim instance As AnalysisRegionBase
Dim regionToIntersect As AnalysisRegionBase
instance.Intersect(regionToIntersect)
public void Intersect(
AnalysisRegionBase regionToIntersect
)
public:
void Intersect(
AnalysisRegionBase^ regionToIntersect
)
public void Intersect(
AnalysisRegionBase regionToIntersect
)
public function Intersect(
regionToIntersect : AnalysisRegionBase
)
参数
- regionToIntersect
类型:System.Windows.Ink.AnalysisCore.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