private void Form1_Load(object sender, System.EventArgs e)
{
//日付型セルを定義します
fpSpread1.ActiveSheet.Cells[1, 1].CellType = new FarPoint.Win.Spread.CellType.DateTimeCellType();
//数値型セルを定義します
fpSpread1.ActiveSheet.Cells[2, 2].CellType = new FarPoint.Win.Spread.CellType.NumberCellType();
}
private void fpSpread1_SubEditorOpening(object sender, FarPoint.Win.Spread.SubEditorOpeningEventArgs e)
{
if (e.Row == 1 || e.Column == 1)
//特定のセルではサブエディタの表示をキャンセルします
e.Cancel = true;
}
private void fpSpread1_SubEditorClosed(object sender, FarPoint.Win.Spread.SubEditorClosedEventArgs e)
{
Console.WriteLine("サブエディタが閉じられました");
}
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
'日付型セルを定義します
FpSpread1.ActiveSheet.Cells(1, 1).CellType = New FarPoint.Win.Spread.CellType.DateTimeCellType
'数値型セルを定義します
FpSpread1.ActiveSheet.Cells(2, 2).CellType = New FarPoint.Win.Spread.CellType.NumberCellType
End Sub
Private Sub FpSpread1_SubEditorOpening(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.SubEditorOpeningEventArgs) Handles FpSpread1.SubEditorOpening
If e.Row = 1 And e.Column = 1 Then
'特定のセルではサブエディタの表示をキャンセルします
e.Cancel = True
End If
End Sub
Private Sub FpSpread1_SubEditorClosed(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.SubEditorClosedEventArgs) Handles FpSpread1.SubEditorClosed
Console.WriteLine("サブエディタが閉じられました")
End Sub