Leadtools.Windows.Annotations Requires Document/Medical license. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Save(String,AnnContainer,AnnCodecsFormat,Int32,AnnCodecsSavePageMode) Method
See Also 
Leadtools.Windows.Annotations Namespace > AnnCodecs Class > Save Method : Save(String,AnnContainer,AnnCodecsFormat,Int32,AnnCodecsSavePageMode) Method



fileName
The output file name.
container
An AnnContainer containing the objects to be saved.
format
An AnnCodecsFormat value that specifies the annotation format to use when saving.
page
1-based index of the page to be saved.
pageMode
A value that indicates how to handle the page when saving to a multi-page file.
fileName
The output file name.
container
An AnnContainer containing the objects to be saved.
format
An AnnCodecsFormat value that specifies the annotation format to use when saving.
page
1-based index of the page to be saved.
pageMode
A value that indicates how to handle the page when saving to a multi-page file.
Saves the annotation objects to a disk file.

Syntax

Visual Basic (Declaration) 
Overloads Public Sub Save( _
   ByVal fileName As String, _
   ByVal container As AnnContainer, _
   ByVal format As AnnCodecsFormat, _
   ByVal page As Integer, _
   ByVal pageMode As AnnCodecsSavePageMode _
) 
Visual Basic (Usage)Copy Code
Dim instance As AnnCodecs
Dim fileName As String
Dim container As AnnContainer
Dim format As AnnCodecsFormat
Dim page As Integer
Dim pageMode As AnnCodecsSavePageMode
 
instance.Save(fileName, container, format, page, pageMode)
C# 
public void Save( 
   string fileName,
   AnnContainer container,
   AnnCodecsFormat format,
   int page,
   AnnCodecsSavePageMode pageMode
)
C++/CLI 
public:
void Save( 
   String^ fileName,
   AnnContainer^ container,
   AnnCodecsFormat format,
   int page,
   AnnCodecsSavePageMode pageMode
) 

Parameters

fileName
The output file name.
container
An AnnContainer containing the objects to be saved.
format
An AnnCodecsFormat value that specifies the annotation format to use when saving.
page
1-based index of the page to be saved.
pageMode
A value that indicates how to handle the page when saving to a multi-page file.

Example

For C#/VB examples, refer to AnnCodecs.

Remarks

pageMode can be one of the following:
ModeDescription
AnnCodecsSavePageMode.OverwritefileName will be overwritten if it exists and all previous information will be lost. Value of page must be 1 or -1 (for appending the objects as last page).
AnnCodecsSavePageMode.InsertfileName must be a valid file with valid annotation pages. Value of page must be between 1 and total number of pages in the file. A value of -1 will append the objects as last page.
AnnCodecsSavePageMode.ReplacefileName must be a valid file with valid annotation pages. Value of page must be between 1 and total number of pages in the file.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also

Save(String,AnnContainer,AnnCodecsFormat,Int32,AnnCodecsSavePageMode) requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.