Applies To:

ChemDraw Menu Extensions Interface:  Access Functions


Selects all of the items in the given document.


long CDAPI CDSelectAll( long documentToken );

documentToken a document token representing the document of interest, as provided to the DLL in a GetSubmenuItemName, GetSubmenuItemState or DoSubmenuChoice call.

Returns a long indicating success (0) or failure (!0) of the function.


After this function is called, the current selection in the document will include all of the items in the document.

A copy of the contents is not returned by this function. If the contents of the document are required, the CDCopyCurrentSelection function or the CDCopyDocument function may be used in conjunction with this function.

This function must have ordinal number 8 in the Import Definition File.

If an error is returned, the DLL may call CDGetApplicationErrorString for a string explaining the error.


See Also:

GetSubmenuItemName, GetSubmenuItemState, DoSubmenuChoice, CDCopyCurrentSelection, CDCopyDocument, CDGetApplicationErrorString

2005 CambridgeSoft Corporation. All Rights Reserved. Privacy Statement
Tel  800 315-7300 / 617 588-9300     Fax  617 588-9390     Email
CambridgeSoft Corporation, 100 CambridgePark Drive, Cambridge, MA 02140 USA