'Declaration Public Function GetSelections() As CellRange()
public CellRange[] GetSelections()
'Declaration Public Function GetSelections() As CellRange()
public CellRange[] GetSelections()
//Select a range first protected void Button1_Click(object sender, EventArgs e) { FarPoint.Web.Spread.Model.CellRange[] cr; cr = FpSpread1.ActiveSheetView.GetSelections(); TextBox1.Text = cr[0].ColumnCount.ToString(); }
'Select a range first Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim cr() As FarPoint.Web.Spread.Model.CellRange cr = FpSpread1.ActiveSheetView.GetSelections() TextBox1.Text = cr(0).ColumnCount.ToString() End Sub