共用方式為


Rectangle.Intersect 方法 (Rectangle, Rectangle)

建立表示 a 和 b. 之間的 intersetion 的矩形。 如果沒有交集,則會傳回 null。

命名空間:  Microsoft.VisualStudio.TestTools.UITest.Input
組件:  Microsoft.VisualStudio.TestTools.UITest.Extension (在 Microsoft.VisualStudio.TestTools.UITest.Extension.dll 中)

語法

'宣告
Public Shared Function Intersect ( _
    a As Rectangle, _
    b As Rectangle _
) As Rectangle
public static Rectangle Intersect(
    Rectangle a,
    Rectangle b
)
public:
static Rectangle Intersect(
    Rectangle a, 
    Rectangle b
)
static member Intersect : 
        a:Rectangle * 
        b:Rectangle -> Rectangle
public static function Intersect(
    a : Rectangle, 
    b : Rectangle
) : Rectangle

參數

傳回值

類型:Microsoft.VisualStudio.TestTools.UITest.Input.Rectangle

.NET Framework 安全性

請參閱

參考

Rectangle 結構

Intersect 多載

Microsoft.VisualStudio.TestTools.UITest.Input 命名空間