PowerTools SPREAD for Windows Forms 10.0J
PrintBackgroundEventHandler デリゲート


イベントのソース
イベントデータ
Spread コンポーネントの PrintBackground イベントを処理する定義済みメソッドを表します。
構文
'Declaration
 
Public Delegate Sub PrintBackgroundEventHandler( _
   ByVal sender As Object, _
   ByVal e As PrintBackgroundEventArgs _
) 
'使用法
 
Dim instance As New PrintBackgroundEventHandler(AddressOf HandlerMethod)
public delegate void PrintBackgroundEventHandler( 
   object sender,
   PrintBackgroundEventArgs e
)

パラメータ

sender
イベントのソース
e
イベントデータ
解説
イベントの詳細については、FpSpread PrintBackgroundイベントを参照してください。
次のサンプルコードは、PrintBackgroundイベントを作成します。
fpSpread1.PrintBackground += new FarPoint.Win.Spread.PrintBackgroundEventHandler(fpSpread1_PrintBackground);
private void fpSpread1_PrintBackground(object sender, FarPoint.Win.Spread.PrintBackgroundEventArgs e)
{
      FarPoint.Win.Picture pic = new FarPoint.Win.Picture(Image.FromFile("C:\\Windows\\zapotec.bmp"), FarPoint.Win.RenderStyle.Normal);
      pic.AlignHorz = FarPoint.Win.HorizontalAlignment.Center;
      pic.AlignVert = FarPoint.Win.VerticalAlignment.Center;
      pic.Paint(e.Graphics, e.SheetRect);
}
Dim eh As FarPoint.Win.Spread.PrintBackgroundEventHandler = AddressOf FpSpread1_PrintBackground
AddHandler FpSpread1.PrintBackground, eh
Private Sub FpSpread1_PrintBackground(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.PrintBackgroundEventArgs) Handles
FpSpread1.PrintBackground
      Dim pic As New FarPoint.Win.Picture(Image.FromFile("C:/Windows/zapotec.bmp"), FarPoint.Win.RenderStyle.Normal)
      pic.AlignHorz = FarPoint.Win.HorizontalAlignment.Center
      pic.AlignVert = FarPoint.Win.VerticalAlignment.Center
      pic.Paint(e.Graphics, e.SheetRect)
End Sub
参照

PrintBackgroundEventHandler メンバ
FarPoint.Win.Spread 名前空間

 

 


© 2004-2017, GrapeCity inc. All rights reserved.