'Declaration Public Function PerformAction( _ ByVal actionCode As UltraPrintPreviewThumbnailAction _ ) As Boolean
public bool PerformAction( UltraPrintPreviewThumbnailAction actionCode )
PerformAction simulates user interaction with the control. Calling Peformaction will cause the control to behave as through the user performed the specified action. Any appropriate events will be called as if the user performed the action.
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