Skip to content

Canvas::Rect method

The Rect method draws a rectangle using the Brush and Pen of the canvas to fill and draw the border.

Overloads

Rect(int, int, int, int) The Rect method draws a rectangle using the Brush and Pen of the canvas to fill and draw the border.
Rect(System.Drawing.Rectangle) The Rect method draws a rectangle using the Brush and Pen of the canvas to fill and draw the border.

Rect(int, int, int, int)

Prototype

void Rect(int left, int top, int right, int bottom)
void Rect(int left, int top, int right, int bottom) throws IGRException;
def Rect(self, left: int, top: int, right: int, bottom: int) -> void
void Rect(int left, int top, int right, int bottom)
void Rect(int left, int top, int right, int bottom)
HRESULT Rect([in] int left, [in] int top, [in] int right, [in] int bottom)

Parameters

left: int : Left-most coordinate of the bounding box.

top: int : Top-most coordinate of the bounding box.

right: int : Right-most coordinate of the bounding box.

bottom: int : Bottom-most coordinate of the bounding box.


Rect(System.Drawing.Rectangle)

Prototype

void Rect(System.Drawing.Rectangle rect)
void Rect(Hyland.DocFilters.RectI32 rect)

Parameters

rect: System.Drawing.Rectangle : The rectangle to draw.