Important: The information in this document is obsolete and should not be used for new development.
Creating and Registering a Section
You use theNewSectionfunction to create a new section (either publisher or subscriber) and alias record (which is a reference to the edition container from the document containing the publisher or subscriber section).The
NewSectionfunction registers a section much as theRegisterSectionfunction informs the Edition Manager about a section (except that theNewSectionfunction does not resolve an alias to find the edition container).When a section needs to be disposed of because the document containing the section is being closed or because the user has canceled the section, you need to call the
UnRegisterSectionfunction before disposing of the section.Using the
IsRegisteredSectionfunction, your application must verify that each event received is for a registered section. This is necessary because your application may have just calledUnRegisterSectionwhile the event was already being held in the event queue.If a user saves a document that contains sections under another name (using Save As) or pastes a portion of a document that contains a section into another document, use the
AssociateSectionfunction to update the section's alias record.
Subtopics
- NewSection
- RegisterSection
- UnRegisterSection
- IsRegisteredSection
- AssociateSection