GrapeCity.Xaml.SpreadSheet.Data
GetCsv(Int32,Int32,Int32,Int32,String,String,String) Method
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > Worksheet Class > GetCsv Method : GetCsv(Int32,Int32,Int32,Int32,String,String,String) Method
The start row.
The start column.
The row count.
The column count.
The row delimiter that is appended to the end of the row.
The column delimiter that is appended to the end of the column.
The cell delimiter that is appended to the beginning and end of the cell.
Gets the CSV text from a range.
Syntax
'Declaration
 
Public Overloads Function GetCsv( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal rowCount As Integer, _
   ByVal columnCount As Integer, _
   ByVal rowDelimiter As String, _
   ByVal columnDelimiter As String, _
   ByVal cellDelimiter As String _
) As String
'Usage
 
Dim instance As Worksheet
Dim row As Integer
Dim column As Integer
Dim rowCount As Integer
Dim columnCount As Integer
Dim rowDelimiter As String
Dim columnDelimiter As String
Dim cellDelimiter As String
Dim value As String
 
value = instance.GetCsv(row, column, rowCount, columnCount, rowDelimiter, columnDelimiter, cellDelimiter)
public string GetCsv( 
   int row,
   int column,
   int rowCount,
   int columnCount,
   string rowDelimiter,
   string columnDelimiter,
   string cellDelimiter
)

Parameters

row
The start row.
column
The start column.
rowCount
The row count.
columnCount
The column count.
rowDelimiter
The row delimiter that is appended to the end of the row.
columnDelimiter
The column delimiter that is appended to the end of the column.
cellDelimiter
The cell delimiter that is appended to the beginning and end of the cell.
Example
This example uses the GetCsv method.
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetCsv(0,0,2,2, "\n", ",", "").ToString());
//listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetCsv(0, 0, 2, 2, "\n", ",", "", false).ToString());
//listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetCsv(0, 0, 2, 2, "\n", ",", "", false, GrapeCity.Xaml.SpreadSheet.Data.TextFileSaveFlags.AsViewed).ToString());
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetCsv(0, 0, 2, 2, ChrW(10), ",", "").ToString())
'ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetCsv(0, 0, 2, 2, ChrW(10), ",", "", False).ToString())
'ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetCsv(0, 0, 2, 2, ChrW(10), ",", "", False, GrapeCity.Xaml.SpreadSheet.Data.TextFileSaveFlags.AsViewed).ToString())
See Also

Reference

Worksheet Class
Worksheet Members
Overload List