PdfRectangleGdiExtensions.Contains Method (PdfRectangle, RectangleF)

Determines if the rectangular region represented by rect is entirely contained within this PdfRectangle structure.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public static bool Contains(
	this PdfRectangle thisRect,
	RectangleF rect
)
VB
<ExtensionAttribute>
Public Shared Function Contains ( 
	thisRect As PdfRectangle,
	rect As RectangleF
) As Boolean

Parameters

thisRect
Type: BitMiracle.Docotic.Pdf.PdfRectangle
The rectangle.
rect
Type: System.Drawing.RectangleF
The RectangleF to test.

Return Value

Type: Boolean
This method returns true if the rectangular region represented by rect is entirely contained within the rectangular region represented by this PdfRectangle; otherwise false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type PdfRectangle. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also