DrawRectangle
IPDFDocument4 :: Page Operations :: Graphics

See Also
Collapse All

This method creates a rectangular path.

Syntax

HRESULT DrawRectangle (
FLOAT left,
FLOAT top,
FLOAT width,
FLOAT height,
FLOAT rotateAngle
)
Parameters
left
X coordinate of the top-left corner of the bounding rectangle

top
Y coordinate of the top-left corner of the bounding rectangle

width
Width of the rectangle

height
Height of the rectangle

rotateAngle
Angle of rotation (indegrees)

Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.

Remarks

This method draws a rectangle with top-left corner at (left, top) and bottom-right corner at (right, bottom) and rotates it at the angle specified.

See theĀ ResetPath method for examples.

See Also

Reference