TextFieldParser.TextFieldType プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > TextFieldParser.TextFieldType プロパティの意味・解説 

TextFieldParser.TextFieldType プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

解析対象ファイル区切り形式固定形式かを示します

名前空間: Microsoft.VisualBasic.FileIO
アセンブリ: Microsoft.VisualBasic (microsoft.visualbasic.dll 内)
構文構文

Public Property TextFieldType As
 FieldType
Dim instance As TextFieldParser
Dim value As FieldType

value = instance.TextFieldType

instance.TextFieldType = value
public FieldType TextFieldType { get; set;
 }
public:
property FieldType TextFieldType {
    FieldType get ();
    void set (FieldType value);
}
/** @property */
public FieldType get_TextFieldType ()

/** @property */
public void set_TextFieldType (FieldType value)
public function get TextFieldType
 () : FieldType

public function set TextFieldType
 (value : FieldType)

プロパティ
TextFieldType.

解説解説
使用例使用例

この例では、TextFieldParser (FileReader) を作成し解析対象ファイル区切り形式であることを指定してます。

Using FileReader As New _
Microsoft.VisualBasic.FileIO.TextFieldParser("C:\ParserText.txt")
    FileReader.TextFieldType = _
    Microsoft.VisualBasic.FileIO.FieldType.Delimited
    FileReader.SetDelimiters(",")
End Using

この例では、TextFieldParser (FileReader) を作成し解析対象ファイル固定形式であることを指定してます。

Using FileReader As New _
Microsoft.VisualBasic.FileIO.TextFieldParser("C:\ParserText.txt")
    FileReader.TextFieldType = _
    Microsoft.VisualBasic.FileIO.FieldType.FixedWidth
    FileReader.FieldWidths = New Integer()
 {5, 10, 11, -1}
End Using
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
TextFieldParser クラス
TextFieldParser メンバ
Microsoft.VisualBasic.FileIO 名前空間
TextFieldParser クラス
その他の技術情報
TextFieldParser.TextFieldType プロパティ
TextFieldParser オブジェクト
FieldType 列挙型
TextFieldParser オブジェクトによるテキスト ファイル解析
方法 : Visual Basicコンマ区切りテキスト ファイル読み取る
方法 : Visual Basic固定幅のテキスト ファイル読み取る
方法 : Visual Basic複数書式を持つテキスト ファイル読み取る
FieldType 列挙型
例外トラブルシューティング : Microsoft.VisualBasic.FileIO.TextFieldParser.MalformedLineException


このページでは「.NET Framework クラス ライブラリ リファレンス」からTextFieldParser.TextFieldType プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からTextFieldParser.TextFieldType プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からTextFieldParser.TextFieldType プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「TextFieldParser.TextFieldType プロパティ」の関連用語

TextFieldParser.TextFieldType プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



TextFieldParser.TextFieldType プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS