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.