Table of Contents

Class StringList

Namespace
Alternet.Syntax
Assembly
Alternet.Syntax.v9.dll

Represents collection containing list of strings.

public class StringList : List<string>, IList, ICollection, IReadOnlyList<string>, IReadOnlyCollection<string>, IStringList, IList<string>, ICollection<string>, IEnumerable<string>, IEnumerable, IImport, IExport
Inheritance
StringList
Implements
Extension Methods

Constructors

StringList()

Initializes a new instance of the CodeSnippetList class with default settings.

StringList(TextReader)

Initializes a new instance of the CodeSnippetList class with specified reader.

Properties

this[int]

Provides an indexed access to individual strings stored in the collection.

LineTerminator

Gets or sets a string value that terminates line.

Text

Gets or sets the strings in the SyntaxStrings as a single string with the individual strings delimited by carriage returns.

Methods

LoadFile(string)

Loads the contents of the specified file.

LoadFile(string, Encoding)

Loads the contents of the specified file with specified encoding.

LoadStream(Stream)

Loads the contents of the specified stream.

LoadStream(Stream, Encoding)

Loads the contents of the specified stream.

LoadStream(TextReader)

Loads the contents of the specified stream.

OnLineTerminatorChanged()
OnTextChanged()
SaveFile(string)

Saves text content to the specific file.

SaveFile(string, Encoding)

Saves content to the given file with specified exported and specific encoding.

SaveStream(Stream)

Saves the text content to the given stream with specified exporter.

SaveStream(Stream, Encoding)

Saves the text content to the given stream with specified exporter.

SaveStream(TextWriter)

Saves the text content to the specified stream.