←Select platform

PagePercent Property

Summary

Gets the save completion percentage of the current page.

Syntax
C#
VB
Objective-C
C++
Java
public int PagePercent { get; } 
Public ReadOnly Property PagePercent As Integer 
@property (nonatomic, assign, readonly) NSUInteger pagePercent 
public int getPagePercent() 
public: 
property int PagePercent { 
   int get(); 
} 

Property Value

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

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 multipage 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 multipage 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 multipage file, both PagePercent and TotalPercent will go from 0 to 100 simultaneously.

Example

For an example, refer to RasterCodecs.SaveImage.

Requirements

Target Platforms

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

Leadtools.Codecs Assembly