newBlockFromString

Creates a new text block from a string.

Syntax
SourceFile newBlockFromString (string)
Parameters
string - String
The source string.
Return Value
An new instance of TextBlock.
Remarks

The string can have multiple lines, the rows are created automatically.