Click or drag to resize

TextBlockParse Method

Parses the text with data of the block and his children.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static TextBlock Parse(
	string str,
	out string error
)

Parameters

str
Type: SystemString
The data string.
error
Type: SystemString
The information on an error.

Return Value

Type: TextBlock
TextBlock if the block has been parsed; otherwise, null.
Remarks
For convenience of loading of blocks there is auxiliary class TextBlockUtility.
Examples
Example of loading of data of the block from a stream.
FileStream stream = ...;
StreamReader streamReader = new StreamReader( stream );
string error;
TextBlock block = TextBlock.Parse( streamReader.ReadToEnd(), out error );
streamReader.Dispose();
See Also

Reference

[!:NeoAxis.TextBlock.DumpToString()]