Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
TextFieldParser.TrimWhiteSpace Property
Definition
- Namespace:
- Microsoft.VisualBasic.FileIO
- Assembly:
- Microsoft.VisualBasic.Core.dll
- Assembly:
- Microsoft.VisualBasic.dll
- Source:
- TextFieldParser.vb
- Source:
- TextFieldParser.vb
- Source:
- TextFieldParser.vb
- Source:
- TextFieldParser.vb
- Source:
- TextFieldParser.vb
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates whether leading and trailing white space should be trimmed from field values.
public:
property bool TrimWhiteSpace { bool get(); void set(bool value); };
public bool TrimWhiteSpace { get; set; }
member this.TrimWhiteSpace : bool with get, set
Public Property TrimWhiteSpace As Boolean
Property Value
True if leading and trailing white space should be trimmed from field values; otherwise, False.
Examples
This example creates a TextFieldParser, FileReader, and sets the TrimWhiteSpace property to True.
Using FileReader As New Microsoft.VisualBasic.FileIO.
TextFieldParser("C:\ParserText.txt")
FileReader.TextFieldType =
Microsoft.VisualBasic.FileIO.FieldType.Delimited
FileReader.SetDelimiters(",")
FileReader.TrimWhiteSpace = True
End Using
Remarks
The default value for this property is True.
Applies to
See also
Feedback
Was this page helpful?
