PowerTools SPREAD for Windows Forms 10.0J
PrintNotes プロパティ


セルのメモをシートの後にどのように印刷するかを取得または設定します。
構文
'Declaration
 
Public Property PrintNotes As PrintNotes
'使用法
 
Dim instance As PrintInfo
Dim value As PrintNotes
 
instance.PrintNotes = value
 
value = instance.PrintNotes
public PrintNotes PrintNotes {get; set;}

プロパティ値

セルのメモの印刷方法を決定するPrintNotes設定
次のサンプルコードは、メモを印刷します。
private void Form1_Load(object sender, System.EventArgs e)
{
     fpSpread1.Sheets[0].RowCount = 20;
     fpSpread1.Sheets[0].ColumnCount = 5;
     fpSpread1.TextTipPolicy = FarPoint.Win.Spread.TextTipPolicy.Fixed;
     fpSpread1.Sheets[0].Cells[0, 0].Note = "test";
}

private void button1_Click(object sender, System.EventArgs e)
{
     FarPoint.Win.Spread.PrintInfo pi = new FarPoint.Win.Spread.PrintInfo(); 
     pi.PrintNotes =FarPoint.Win.Spread.PrintNotes.AtEnd;
     fpSpread1.Sheets[0].PrintInfo = pi;
     fpSpread1.PrintSheet(-1);
}
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        FpSpread1.Sheets(0).RowCount = 20
        FpSpread1.Sheets(0).ColumnCount = 5
        FpSpread1.TextTipPolicy = FarPoint.Win.Spread.TextTipPolicy.Fixed
        FpSpread1.Sheets(0).Cells(0, 0).Note = "test"
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim pi As New FarPoint.Win.Spread.PrintInfo()
        pi.PrintNotes = FarPoint.Win.Spread.PrintNotes.AtEnd
        FpSpread1.Sheets(0).PrintInfo = pi
        FpSpread1.PrintSheet(-1)
End Sub
参照

PrintInfo クラス
PrintInfo メンバ
PrintNotes 列挙体

開発者ガイド

印刷内容の指定
セル ノートの印刷

 

 


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