バージョン

PageFooterPrinted イベント

Footer が印刷された後に発生します。
シンタックス
'宣言
 
Public Event PageFooterPrinted As HeaderFooterPrintedEventHandler
public event HeaderFooterPrintedEventHandler PageFooterPrinted
イベント データ

イベント ハンドラが、このイベントに関連するデータを含む、HeaderFooterPrintedEventArgs 型の引数を受け取りました。次の HeaderFooterPrintedEventArgs プロパティには、このイベントの固有の情報が記載されます。

プロパティ解説
Document Infragistics.Win.Printing.PageSectionPrintEventArgsから継承されます。印刷するドキュメントを返します。
Graphics Infragistics.Win.Printing.PageSectionPrintEventArgsから継承されます。ページを描画するグラフィックオブジェクトを返します。
PageSettings Infragistics.Win.Printing.PageSectionPrintEventArgsから継承されます。印刷するカレントページに関連付けられた System.Drawing.Printing.PageSettings を返します。
RectInsideBorders Infragistics.Win.Printing.PageSectionPrintEventArgsから継承されます。境界線の内側にあるセクションの領域を返します。
RectInsideMargins Infragistics.Win.Printing.PageSectionPrintEventArgsから継承されます。マージンの内側にあるセクションの領域を返します。
RectInsidePadding Infragistics.Win.Printing.PageSectionPrintEventArgsから継承されます。境界線の内側にあるセクションの領域を返します。
RectOverall Infragistics.Win.Printing.PageSectionPrintEventArgsから継承されます。セクションに使用可能な領域を返します。
Section 印刷するヘッダーまたはフッターセクションを返します。
使用例
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.Printing

    Private Sub UltraPrintDocument1_PageFooterPrinting(ByVal sender As Object, ByVal e As Infragistics.Win.Printing.HeaderFooterPrintingEventArgs) Handles UltraPrintDocument1.PageFooterPrinting
        ' the handled property can be used to prevent the 
        ' footer from rendering itself and can also be used
        ' to custom render the footer
        If e.Document.PageNumber = 1 Then
            e.Handled = True
        End If
    End Sub

    Private Sub UltraPrintDocument1_PageFooterPrinted(ByVal sender As Object, ByVal e As Infragistics.Win.Printing.HeaderFooterPrintedEventArgs) Handles UltraPrintDocument1.PageFooterPrinted
        ' the PageFooterPrinted is invoked after the page header
        ' has been rendered and can be used to draw something on
        ' top of the header
    End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.Printing;

		private void ultraPrintDocument1_PageFooterPrinting(object sender, Infragistics.Win.Printing.HeaderFooterPrintingEventArgs e)
		{
			// the handled property can be used to prevent the 
			// footer from rendering itself and can also be used
			// to custom render the footer
			if (e.Document.PageNumber == 1)
				e.Handled = true;
		}

		private void ultraPrintDocument1_PageFooterPrinted(object sender, Infragistics.Win.Printing.HeaderFooterPrintedEventArgs e)
		{
			// the PageFooterPrinted is invoked after the page header
			// has been rendered and can be used to draw something on
			// top of the header
		}
参照