AddEditBox
IPDFDocument4 :: Page Operations :: Common

See Also
Collapse All

This method creates a text edit control in a PDF document.

Syntax

LONG AddEditBox (
FLOAT left,
FLOAT top,
FLOAT right,
FLOAT bottom,
BSTR name
)
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

right
X coordinate of the bottom-right corner of the bounding rectangle

bottom
Y coordinate of the bottom-right corner of the bounding rectangle

name
Name of the control

Return value
Index of the edit box

Remarks

This method creates a text edit control with name name on the current PDF page in an area bounded by the specified coordinates.

The return value is an annotation/control identifier in the document's annotations collection and can be used in AddControlToAction and CurrentAnnotation.

See the AddButton method for examples.

See Also

Reference