Important: The information in this document is obsolete and should not be used for new development.
DeleteTSMDocument
TheDeleteTSMDocumentfunction closes all opened text service components for the TSM document.
FUNCTION DeleteTSMDocument (idocID: TSMDocumentID): OSErr;
idocID- A TSM document identification number created by a prior call to the
NewTSMDocumentfunction (see page 7-50).DESCRIPTION
When your application disposes of a TSM document, it must call theDeleteTSMDocumentfunction to inform the Text Services Manager that the document is no longer using text service components.DeleteTSMDocumentinvokes the Component ManagerCloseComponentfunction for each open text service component associated with this document. It also disposes of the internal data structure for the
TSM document.RESULT CODES
noErr No error tsmInvalidDocIDErr Document is not a valid TSM document tsmNeverRegisteredErr Application is not TSM-aware