Click or drag to resize

StkPatternFileReadFrom Method (String, StkPatternFileOptions)

Reads an STK pattern (.pattern) file from a specified file. 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.4.401.0 (19.4.401.0)
Syntax
public static StkPatternFile ReadFrom(
	string fileName,
	StkPatternFileOptions readOptions
)

Parameters

fileName
Type: SystemString
The name of the file from which to read the pattern.
readOptions
Type: AGI.Foundation.StkStkPatternFileOptions
An object containing any additional instructions for the read process.

Return Value

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