LEADTOOLS Image File Support (Leadtools.Codecs assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
TotalPercent Property
See Also 
Leadtools.Codecs Namespace > CodecsSaveImageEventArgs Class : TotalPercent Property



Gets the overall completion percentage for the save soperation.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property TotalPercent As Integer
Visual Basic (Usage)Copy Code
Dim instance As CodecsSaveImageEventArgs
Dim value As Integer
 
value = instance.TotalPercent
C# 
public int TotalPercent {get;}
C++/CLI 
public:
property int TotalPercent {
   int get();
}

Property Value

A number between 0 and 100 that indicates the overall completion percentage of the save operation.

Example

For an example, refer to RasterCodecs.SaveImage.

Remarks

Using the PagePercent and TotalPercent properties, you can use the CodecsSaveImageEventArgs to show a progress bar of the current save operation.

When saving a multi-page file, PagePercent will go from 0 to 100 for each page saved while TotalPercent will go from 0 to 100 only once during the whole page operation. Usually, you will use TotalPercent to show an overall save progress if the multi-page image is considered to be one document. If however, individual progress is required for each page, then you can track the PagePercent property as well.

When saving a single page file or one page to a multi-page file, both PagePercent and TotalPercent will go from 0 to 100 simultunasouly.

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also