Spread WPF Documentation
SetArrayFormula Method (Worksheet)
Example 


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")
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)

See Also

Reference

Worksheet Class
Worksheet Members

 

 


Copyright © GrapeCity, inc. All rights reserved.