Table of Contents

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

rtf string

The text of an .rtf file, one character to a byte.

height double

The 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.