【C#】図形 ~ 矩形 / Rectangle ~

■ 主なメソッド

IntersectsWith() / Intersect()

IntersectsWith()
 * 矩形が重なるか判定する
https://www.ipentec.com/document/csharp-rectangle-check-intersect
Intersect()
 * 矩形が重なる部分を求める
https://www.ipentec.com/document/csharp-rectangle-get-intersect-rectangle

Contains()

 * 指定座標が矩形内に入っているか判定する
https://www.ipentec.com/document/csharp-rectangle-check-point-in-rectangle

Inflate()

Inflate = 膨らませる、膨張させる
 * 長方形中心点を基点にして、各方向へ指定値分、拡大
http://acha-ya.cocolog-nifty.com/blog/2010/10/intersectunioni.html

関連記事

PictureBox [4] ~ PictureBox 内に文字列を描画する ~

https://blogs.yahoo.co.jp/dk521123/37890831.html