Method Contains
Contains(in Rectangle, in Point)
Gets whether the specified coordinates lie within the thickness (inside the bounding rectangle but outside the rectangle described by GetInside(Rectangle).
public bool Contains(in Rectangle outside, in Point location)
Parameters
outside
RectangleDescribes the location and size of the rectangle that contains the thickness.
location
PointThe coordinate to check.