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: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public static TextBlock Parse(
	string str,
	out string error
)

Parameters

str  String
The data string.
error  String
The information on an error.

Return Value

TextBlock
TextBlock if the block has been parsed; otherwise, null.
Remarks
For convenience of loading of blocks there is auxiliary class TextBlockUtility.
Example
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

TextBlock Class
NeoAxis Namespace
[!:NeoAxis.TextBlock.DumpToString()]