MESCIUS SPREAD for Windows Forms 17.0J
ColumnFooter プロパティ (TextTipFetchEventArgs)

セルが列フッタにあるかどうかを取得します。
構文
'Declaration
 
Public ReadOnly Property ColumnFooter As Boolean
public bool ColumnFooter {get;}
次のサンプルコードは、ColumnFooterプロパティを使用します。
fpSpread1.Sheets[0].RowCount = 10;
fpSpread1.Sheets[0].ColumnCount = 15;
// Show the column footer.
fpSpread1.Sheets[0].ColumnFooter.Visible = true;
fpSpread1.Sheets[0].ColumnFooter.RowCount = 2;
fpSpread1.Sheets[0].ColumnFooter.DefaultStyle.ForeColor = Color.Purple;
fpSpread1.Sheets[0].ColumnFooter.Columns[12].HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
fpSpread1.Sheets[0].ColumnFooter.Cells[0, 12].RowSpan = 2;
fpSpread1.Sheets[0].ColumnFooter.Cells[0, 0].Value = "Text Tip string";
fpSpread1.TextTipPolicy = FarPoint.Win.Spread.TextTipPolicy.Floating;

private void fpSpread1_TextTipFetch(object sender, FarPoint.Win.Spread.TextTipFetchEventArgs e)
{
listBox1.Items.Add(e.ColumnFooter);
}
fpSpread1.Sheets(0).RowCount = 10
fpSpread1.Sheets(0).ColumnCount = 15
' Show the column footer.
fpSpread1.Sheets(0).ColumnFooter.Visible = True
fpSpread1.Sheets(0).ColumnFooter.RowCount = 2
fpSpread1.Sheets(0).ColumnFooter.DefaultStyle.ForeColor = Color.Purple
fpSpread1.Sheets(0).ColumnFooter.Columns(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left
fpSpread1.Sheets(0).ColumnFooter.Cells(0, 12).RowSpan = 2
fpSpread1.Sheets(0).ColumnFooter.Cells(0, 0).Value = "Text Tip string"
fpSpread1.TextTipPolicy = FarPoint.Win.Spread.TextTipPolicy.Floating

Private Sub fpSpread1_TextTipFetch(sender As Object, e As FarPoint.Win.Spread.TextTipFetchEventArgs) Handles fpSpread1.TextTipFetch
ListBox1.Items.Add(e.ColumnFooter)
End Sub
参照

TextTipFetchEventArgs クラス
TextTipFetchEventArgs メンバ

 

 


© MESCIUS inc. All rights reserved.