Method FromRtf
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
FromRtf(string, double)
Reads rich text as the class says.
public static CadMTextContent FromRtf(string rtf, double height)
Parameters
rtfstringThe text of an .rtf file, one character to a byte.
heightdoubleThe MTEXT's height, which the sizes are taken as ratios of.
Returns
- CadMTextContent
The paragraphs of runs; one empty paragraph for no words.
Exceptions
- ArgumentNullException
Thrown when the text is null.