System::Drawing::Rectangle::Intersect method

Rectangle::Intersect(const Rectangle&) method

現在のオブジェクトで表される矩形を、指定されたオブジェクトで表される矩形との交差結果となる矩形に置き換えます。

void System::Drawing::Rectangle::Intersect(const Rectangle &rect)
パラメーター説明
rectconst Rectangle&現在のオブジェクトが表す矩形と交差させる矩形を表す Rectangle オブジェクトです。

参照

Rectangle::Intersect(const Rectangle&, const Rectangle&) method

指定された矩形の交差結果となる矩形を返します。

static Rectangle System::Drawing::Rectangle::Intersect(const Rectangle &a, const Rectangle &b)
パラメーター説明
aconst Rectangle&交差させる最初の矩形
bconst Rectangle&交差させる2番目の矩形

ReturnValue

ab の交差結果

参照