[]
        
(Showing Draft Content)

C1.C1Preview.RectangleD.Contains

Contains Method

Contains(PointD)

Tests whether the specified point is contained within the current RectangleD.

Declaration
public bool Contains(PointD pt)
Parameters
Type Name Description
PointD pt

The PointD to test.

Returns
Type Description
bool
<b>true</b> if <code class="paramref">pt</code> is contained within the current <xref href="C1.C1Preview.RectangleD" data-throw-if-not-resolved="false"></xref> structure,

false otherwise.

Contains(RectangleD)

Tests whether the specified rectangle is entirely contained within the current RectangleD.

Declaration
public bool Contains(RectangleD rc)
Parameters
Type Name Description
RectangleD rc

The RectangleD to test.

Returns
Type Description
bool
<b>true</b> if <code class="paramref">rc</code> is completely contained within the current <xref href="C1.C1Preview.RectangleD" data-throw-if-not-resolved="false"></xref> structure,

false otherwise.

Contains(double, double)

Tests whether a point specified by its coordinates is contained within the current RectangleD.

Declaration
public bool Contains(double x, double y)
Parameters
Type Name Description
double x

The X coordinate of the point to test.

double y

The Y coordinate of the point to test.

Returns
Type Description
bool
<b>true</b> if the specified point is contained within the current <xref href="C1.C1Preview.RectangleD" data-throw-if-not-resolved="false"></xref> structure,

false otherwise.