バージョン

PageSetupDialogDisplayingEventHandler デリゲート

PageSetupDialogDisplaying イベントを処理するためのデリゲート。
シンタックス
'宣言
 
Public Delegate Sub PageSetupDialogDisplayingEventHandler( _
   ByVal sender As Object, _
   ByVal e As PageSetupDialogDisplayingEventArgs _
) 
public delegate void PageSetupDialogDisplayingEventHandler( 
   object sender,
   PageSetupDialogDisplayingEventArgs e
)

パラメータ

sender
e
使用例
Imports Infragistics.Win
Imports Infragistics.Win.Printing
Imports Infragistics.Win.UltraWinGrid
Imports Infragistics.Win.UltraWinScrollBar
Imports Infragistics.Win.UltraWinToolbars


    Private Sub ultraPrintPreviewDialog1_PageSetupDialogDisplaying(ByVal sender As System.Object, ByVal e As Infragistics.Win.Printing.PageSetupDialogDisplayingEventArgs) Handles ultraPrintPreviewDialog1.PageSetupDialogDisplaying

        ' cast the sender to a UltraPrintPreviewDialog
        Dim printPreviewDialog As UltraPrintPreviewDialog = CType(sender, UltraPrintPreviewDialog)

        ' set properties on the PageSetupDialog
        e.Dialog.AllowMargins = True

        '--------------------------------------------------------
        ' to display a custom setup dialog instead set the 
        ' Cancel property to true and display your dialog here
        ' e.g.
        ' e.Cancel = True
        '  
        ' ... show custom setup dialog modally here 
        '
        ' call InvalidatePreview on the UltraPrintPreviewDialog
        ' to cause the preview to be regenerated.
        '
        ' printPreviewDialog.InvalidatePreview()
        '--------------------------------------------------------

    End Sub
using Infragistics.Win;
using Infragistics.Win.Printing;
using Infragistics.Win.UltraWinGrid;
using Infragistics.Win.UltraWinScrollBar;
using Infragistics.Win.UltraWinToolbars;


		private void ultraPrintPreviewDialog1_PageSetupDialogDisplaying(object sender, Infragistics.Win.Printing.PageSetupDialogDisplayingEventArgs e)
		{
			// cast the sender to a UltraPrintPreviewDialog
			UltraPrintPreviewDialog printPreviewDialog = sender as UltraPrintPreviewDialog;

			// set properties on the PageSetupDialog
			e.Dialog.AllowMargins = true;

			//--------------------------------------------------------
			// to display a custom setup dialog instead set the 
			// Cancel property to true and display your dialog here
			// e.g.
			// e.Cancel = true;
			//
			// ... show custom setup dialog modally here 
			//
			// call InvalidatePreview on the UltraPrintPreviewDialog
			// to cause the preview to be regenerated.
			//
			// printPreviewDialog.InvalidatePreview();
			//--------------------------------------------------------

		}
参照