# Edit a Document

## Search for Text

- To determine whether a document can be searched, use the `VAPIMWP_EDIT_CANFIND` message. See VAPIMWP_EDIT_CANFIND .

- To search a document for the specified text, use the `VAPIMWP_EDIT_FIND` message. See VAPIMWP_EDIT_FIND .

- To get the currently selected text in a document, use the `VAPIMWP_EDIT_GETFINDTEXT` message. See VAPIMWP_EDIT_GETFINDTEXT .

## Copy Text

- To determine whether the selected text in a document can be copied, use the `VAPIMWP_EDIT_CANCOPY` message. See VAPIMWP_EDIT_CANCOPY .

- To copy the selected text in a document, use the `VAPIMWP_EDIT_COPY` message. See VAPIMWP_EDIT_COPY .

- To determine whether all the items in a document can be selected, use the `VAPIMWP_EDIT_CANSELECTALL` message. SeeVAPIMWP_EDIT_CANSELECTALL .

- To select all the items in a document, use the `VAPIMWP_EDIT_SELECTALL` message. See VAPIMWP_EDIT_SELECTALL.

© Copyright 2016-2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm