This is a read-only property that returns an integer value indicating the number of preview pages that will be displayed by the control.
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 ); } }
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