Spread Silverlight Documentation
SetArrayFormula Method (Worksheet)
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > Worksheet Class : SetArrayFormula Method
The start row index.
The start column index.
The number of rows in all areas.
The number of columns in all areas.
The formula to place in the specified cell.
Sets an array formula in a specified cell area in the specified sheet area.
Syntax
'Declaration
 
Public Sub SetArrayFormula( _
   ByVal row As System.Integer, _
   ByVal column As System.Integer, _
   ByVal rowCount As System.Integer, _
   ByVal columnCount As System.Integer, _
   ByVal formula As System.String _
) 
'Usage
 
Dim instance As Worksheet
Dim row As System.Integer
Dim column As System.Integer
Dim rowCount As System.Integer
Dim columnCount As System.Integer
Dim formula As System.String
 
instance.SetArrayFormula(row, column, rowCount, columnCount, formula)
public void SetArrayFormula( 
   System.int row,
   System.int column,
   System.int rowCount,
   System.int columnCount,
   System.string formula
)

Parameters

row
The start row index.
column
The start column index.
rowCount
The number of rows in all areas.
columnCount
The number of columns in all areas.
formula
The formula to place in the specified cell.
Example
This example uses the SetArrayFormula method.
gcSpreadSheet1.Sheets[0].SetArrayFormula(0, 3, 4, 1, "B2:B5*C2:C5");
gcSpreadSheet1.Sheets(0).SetArrayFormula(0, 3, 4, 1, "B2:B5*C2:C5")
See Also

Reference

Worksheet Class
Worksheet Members