Spread WPF Documentation
SetCsv(Int32,Int32,String,String,String,String,TextFileOpenFlags) Method
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > Worksheet Class > SetCsv Method : SetCsv(Int32,Int32,String,String,String,String,TextFileOpenFlags) Method
The start row.
The start column.
The CSV text.
The row delimiter.
The column delimiter.
The cell delimiter.
The import flags.
Sets CSV text in the sheet.
Syntax
'Declaration
 
Public Overloads Sub SetCsv( _
   ByVal row As System.Integer, _
   ByVal column As System.Integer, _
   ByVal text As System.String, _
   ByVal rowDelimiter As System.String, _
   ByVal columnDelimiter As System.String, _
   ByVal cellDelimiter As System.String, _
   ByVal flags As TextFileOpenFlags _
) 
'Usage
 
Dim instance As Worksheet
Dim row As System.Integer
Dim column As System.Integer
Dim text As System.String
Dim rowDelimiter As System.String
Dim columnDelimiter As System.String
Dim cellDelimiter As System.String
Dim flags As TextFileOpenFlags
 
instance.SetCsv(row, column, text, rowDelimiter, columnDelimiter, cellDelimiter, flags)
public void SetCsv( 
   System.int row,
   System.int column,
   System.string text,
   System.string rowDelimiter,
   System.string columnDelimiter,
   System.string cellDelimiter,
   TextFileOpenFlags flags
)

Parameters

row
The start row.
column
The start column.
text
The CSV text.
rowDelimiter
The row delimiter.
columnDelimiter
The column delimiter.
cellDelimiter
The cell delimiter.
flags
The import flags.
Example
This example uses the SetCsv method.
gcSpreadSheet1.Sheets[0].SetCsv(0, 0, "test", "/r", ",", "");
//gcSpreadSheet1.Sheets[0].SetCsv(0, 0, "Testing", "/r", ",", "", GrapeCity.Windows.SpreadSheet.Data.TextFileOpenFlags.None);
GcSpreadSheet1.Sheets(0).SetCsv(0, 0, "test", ChrW(13), ",", "")
'GcSpreadSheet1.Sheets(0).SetCsv(0, 0, "test", ChrW(13), ",", "", GrapeCity.Windows.SpreadSheet.Data.TextFileOpenFlags.None)
See Also

Reference

Worksheet Class
Worksheet Members
Overload List