←Select platform

Save(AnnContainer,AnnFormat,String,Int32) Method

Saves an annotation container to XML data.
public String save(AnnContainer container, AnnFormat format, String xmlData, int savePageNumber) 


The AnnContainer to be saved. This value must not be null.

Must be AnnFormat.Annotations.

Optional existing data. Can be null to create new annotation data; otherwise, it must contain valid data previously saved using this method.

The page number on which to place the data.

Return Value

An XML string of annotations that were saved.


If _xmlData_ is not null, then it must contain valid LEADTOOLS annotation data previously saved with Save(String,AnnContainer,AnnFormat,Int32). This method will insert or replace the page specified in _savePageNumber_ and return the updated data.

If _xmlData_ is null, then this method will create the new LEADTOOLS annotation data and return it.

If the value of _savePageNumber_ is 0, the page number to use when saving is obtained from the PageNumber property of _container_; otherwise, the _savePageNumber_ page number is used when saving.

LEADTOOLS supports saving multiple containers in the same file each with a unique page number. Use Load(String,Int32) with the page number to load the desired page.


Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Engine Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.