Click or drag to resize

StkPatternFileReadFrom Method (TextReader)

Reads an STK pattern (.pattern) file from a TextReader. The TextReader can be a StreamReader for reading from a file, a StringReader for reading from a string, or any number of other types. See the Remarks section of the documentation of ReadFrom(TextReader, StkPatternFileOptions) for detailed information.

Namespace:  AGI.Foundation.Stk
Assembly:  AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 19.1.398.0 (19.1.398.0)
public static StkPatternFile ReadFrom(
	TextReader reader


Type: System.IOTextReader
The reader from which to read the pattern.

Return Value

Type: StkPatternFile
An StkPatternFile instance containing the read pattern file.
InvalidDataException Thrown when the STK pattern file is invalid or it contains unsupported properties or property values.
See Also