Version

PageCount Property (UltraPrintPreviewThumbnail)

Returns the number of pages in the preview
Syntax
'Declaration
 
Public Overrides ReadOnly Property PageCount As Integer
public override int PageCount {get;}
Remarks

This is a read-only property that returns an integer value indicating the number of preview pages that will be displayed by the control.

Example
This snippet shows how to use the PageCount property and PerformAction method.

Private Sub button1_Click(sender As Object, e As System.EventArgs) Handles Me.button1.Click

   ' If any pages exist, scroll to the first one.
   '
   If Me.ultraPrintPreviewThumbnail1.PageCount > 0 Then
      Me.ultraPrintPreviewThumbnail1.PerformAction(Infragistics.Win.Printing.UltraPrintPreviewThumbnailAction.ScrollToFirstPage)
   End If

End Sub
private void button1_Click(object sender, System.EventArgs e)
{
	// If any pages exist, scroll to the first one.
	//
	if( this.ultraPrintPreviewThumbnail1.PageCount > 0 )
	{
		this.ultraPrintPreviewThumbnail1.PerformAction( Infragistics.Win.Printing.UltraPrintPreviewThumbnailAction.ScrollToFirstPage );
	}
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also