private void Form1_Load(object sender, System.EventArgs e)
{
//「読み取り専用モード」を定義します
fpSpread1.ActiveSheet.OperationMode = FarPoint.Win.Spread.OperationMode.ReadOnly;
fpSpread1.ActiveSheet.ColumnCount = 5;
}
private void button1_Click(object sender, System.EventArgs e)
{
//4行目全体を選択状態にします
fpSpread1.ActiveSheet.AddSelection(3, -1, 1, -1);
}
private void button2_Click(object sender, System.EventArgs e)
{
//シート上の選択状態を解除します
fpSpread1.ActiveSheet.ClearSelection();
}
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
'「読み取り専用モード」を定義します
FpSpread1.ActiveSheet.OperationMode = FarPoint.Win.Spread.OperationMode.ReadOnly
FpSpread1.ActiveSheet.ColumnCount = 5
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'4行目全体を選択状態にします
FpSpread1.ActiveSheet.AddSelection(3, -1, 1, -1)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
'シート上の選択状態を解除します
FpSpread1.ActiveSheet.ClearSelection()
End Sub