Spread WPF Documentation
GetArrayFormula Method
Example 


The row index.
The column index.
The row count.
The column count.
Gets the formula in the specified area in this sheet.
Syntax
'Declaration
 
Public Function GetArrayFormula( _
   ByVal row As System.Integer, _
   ByVal column As System.Integer, _
   ByVal rowCount As System.Integer, _
   ByVal columnCount As System.Integer _
) 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 value As System.String
 
value = instance.GetArrayFormula(row, column, rowCount, columnCount)
public System.string GetArrayFormula( 
   System.int row,
   System.int column,
   System.int rowCount,
   System.int columnCount
)

Parameters

row
The row index.
column
The column index.
rowCount
The row count.
columnCount
The column count.

Return Value

Returns the formula string.
Example
This example uses the GetArrayFormula method.
GcSpreadSheet1.Sheets[0].SetArrayFormula(0, 3, 4, 1, "B2:B5*C2:C5");
TextBox1.Text = GcSpreadSheet1.Sheets[0].GetArrayFormula(0, 3, 4, 1).ToString();
GcSpreadSheet1.Sheets(0).SetArrayFormula(0, 3, 4, 1, "B2:B5*C2:C5")
TextBox1.Text = GcSpreadSheet1.Sheets(0).GetArrayFormula(0, 3, 4, 1).ToString()
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.