FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread.Model 名前空間 > IRangeSupport インタフェース : RemoveColumns メソッド |
'Declaration Sub RemoveColumns( _ ByVal column As Integer, _ ByVal columnCount As Integer _ )
'使用法 Dim instance As IRangeSupport Dim column As Integer Dim columnCount As Integer instance.RemoveColumns(column, columnCount)
void RemoveColumns( int column, int columnCount )
FarPoint.Win.Spread.Model.IRangeSupport irs; DialogResult dlg; irs = (FarPoint.Win.Spread.Model.IRangeSupport)fpSpread1.ActiveSheet.Models.Data; dlg = MessageBox.Show("Do you want to remove some columns and rows?", "RemoveColumns/Rows", MessageBoxButtons.YesNo); if (dlg == DialogResult.Yes) { irs.RemoveColumns(3, 496); irs.RemoveRows(3, 496); }
Dim irs As FarPoint.Win.Spread.Model.IRangeSupport Dim dlg As DialogResult irs = FpSpread1.ActiveSheet.Models.Data dlg = MessageBox.Show("Do you want to remove some columns and rows?", "RemoveColumns/Rows", MessageBoxButtons.YesNo) If dlg = DialogResult.Yes Then irs.RemoveColumns(3, 496) irs.RemoveRows(3, 496) End If