FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > SheetView クラス : RemoveSelection メソッド |
'Declaration Public Sub RemoveSelection( _ ByVal row As Integer, _ ByVal column As Integer, _ ByVal rowCount As Integer, _ ByVal columnCount As Integer _ )
DialogResult dlg; fpSpread1.ActiveSheet.AddSpanCell(0, 0, 2, 2); fpSpread1.ActiveSheet.AddSelection(2, 0, 2, 2); dlg = MessageBox.Show("Do you want to remove the selection and span cell?", "RemoveSelection/SpanCell", MessageBoxButtons.YesNo); if (dlg == DialogResult.Yes) { fpSpread1.ActiveSheet.RemoveSelection(2, 0, 2, 2); fpSpread1.ActiveSheet.RemoveSpanCell(0, 0); }
Dim dlg As DialogResult FpSpread1.ActiveSheet.AddSpanCell(0, 0, 2, 2) FpSpread1.ActiveSheet.AddSelection(2, 0, 2, 2) dlg = MessageBox.Show("Do you want to remove the selection and span cell?", "RemoveSelection/SpanCell", MessageBoxButtons.YesNo) If dlg = DialogResult.Yes Then FpSpread1.ActiveSheet.RemoveSelection(2, 0, 2, 2) FpSpread1.ActiveSheet.RemoveSpanCell(0, 0) End If