Table of Contents

Method SetContentsRtf

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

SetContentsRtf(string)

Sets the words of the MTEXT from a document of RTF, as AutoCAD's SetContentsRtf: its words, with the codes of an MTEXT for what it sets that an MTEXT has, each written where the words take it on or off.

public int SetContentsRtf(string value)

Parameters

value string

The RTF.

Returns

int

How many characters the words have, codes among them, as Contents gives them.

Remarks

Read: \par, \line, \sect and \page as a paragraph \P, the last of the document left out; \column as \N; \tab as a tab, written ^I; \~ as \~; \ul and its kinds and \strike as \L and \K, \ulnone, \ul0 and \strike0 as \l and \k; a font \f of the font table, with \b and \i, as \fArial|b1|i0;, or \F of its file for a font whose name ends in .shx or whose entry is marked {\*\ghfontfile}, as ContentsRTF marks one, and for the style's font where the style has a font's file, with no bold or italic, which a font's file has not; a colour \cf as \C of AutoCAD's index nearest it, the automatic colour as \C256;; \plain taking them all back; \u, \'e9 (Windows-1252), \emdash, the quotes and the other letters RTF names as the letters. The style's font, plain, is written by no code, and a code only before a letter it changes, so that the RTF ContentsRTF gives comes back as the same words in the same look, its groups made codes on and off: B-12\P{\C1;\LM16\l} comes back as B-12\P\C1;\LM16, abc\P as abc\P and \Fromans|c0;abc as \Fromans;abc. Every other word of RTF is left out, the size of the letters (\fs) and the paragraph's settings among them, with the groups whose words are not the document's: the style sheet, the information, pictures, headers and footers, and every group marked \*.

Exceptions

ArgumentNullException

Thrown when the RTF is null.

InvalidOperationException

Thrown when the MTEXT is erased.