FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > SheetView クラス > LoadTextFile メソッド : LoadTextFile(String,TextFileFlags,IncludeHeaders,String,String,String) メソッド |
'Declaration Public Overloads Sub LoadTextFile( _ ByVal fileName As String, _ ByVal textFileFlags As TextFileFlags, _ ByVal includeHeaders As IncludeHeaders, _ ByVal rowDelimiter As String, _ ByVal columnDelimiter As String, _ ByVal cellDelimiter As String _ )
'使用法 Dim instance As SheetView Dim fileName As String Dim textFileFlags As TextFileFlags Dim includeHeaders As IncludeHeaders Dim rowDelimiter As String Dim columnDelimiter As String Dim cellDelimiter As String instance.LoadTextFile(fileName, textFileFlags, includeHeaders, rowDelimiter, columnDelimiter, cellDelimiter)
public void LoadTextFile( string fileName, TextFileFlags textFileFlags, IncludeHeaders includeHeaders, string rowDelimiter, string columnDelimiter, string cellDelimiter )
例外 | 説明 |
---|---|
System.ArgumentException | セル区切り文字列を行または列の区切り文字列に含めることはできません。 |
fpSpread1.ActiveSheet.LoadTextFile("c:\\test.txt", FarPoint.Win.Spread.TextFileFlags.Unformatted, FarPoint.Win.Spread.Model.IncludeHeaders.None, "\n", ",", "");
FpSpread1.ActiveSheet.LoadTextFile("c:\test.txt", FarPoint.Win.Spread.TextFileFlags.Unformatted, FarPoint.Win.Spread.Model.IncludeHeaders.None, Chr(10), ",", "")