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
outsideRectangleDescribes the location and size of the rectangle that contains the thickness.
locationPointThe coordinate to check.