'Declaration Public Overridable Sub AddColumns( _ ByVal column As Integer, _ ByVal count As Integer _ )
Parameters
- column
- Position at which to add the new column(s)
- count
- Number of columns to add
'Declaration Public Overridable Sub AddColumns( _ ByVal column As Integer, _ ByVal count As Integer _ )
DialogResult dlg; fpSpread1.ActiveSheet.Columns.Count = 4; dlg = MessageBox.Show("Do you want to add some columns?", "AddColumns", MessageBoxButtons.YesNo); if (dlg == DialogResult.Yes) { fpSpread1.ActiveSheet.AddColumns(0, 2); }
Dim dlg As DialogResult FpSpread1.ActiveSheet.Columns.Count = 4 dlg = MessageBox.Show("Do you want to add some columns?", "AddColumns", MessageBoxButtons.YesNo) If dlg = DialogResult.Yes Then FpSpread1.ActiveSheet.AddColumns(0, 2) End If