Table of Contents

Method Parse

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Parse(string, double)

Reads the words of an MTEXT as its group 1 and 3 write them. A height set to the MTEXT's own is read as no height, so that {\H2.5;A} of an MTEXT 2.5 high is plain.

public static CadMTextContent Parse(string contents, double height)

Parameters

contents string

The words with their codes; null is none.

height double

The MTEXT's height, which \H2x; doubles.

Returns

CadMTextContent

The content.

Parse(string, double, double)

Reads the words as Parse(string, double) does, for laying them out: a width factor in times (W1.2x;) before any other is times the style's, 0.9 in a style of 0.75.

public static CadMTextContent Parse(string contents, double height, double styleWidth)

Parameters

contents string

The words with their codes; null is none.

height double

The MTEXT's height, which H2x; doubles.

styleWidth double

The width factor of the MTEXT's style.

Returns

CadMTextContent

The content.