MapiMessageItemBase.SetBodyRtf method

Gets or sets the RTF formatted message text.

public void SetBodyRtf(string content, bool compression)
Parameter Type Description
content String The content.
compression Boolean Specify that the content should be compressed.


When setting a value, the values of PR_RTF_COMPRESSED, PR_RTF_DECOMPRESSES, PR_BODY properties are updated. A string value being set must have RTF format. Thus, if it is necessary to set a value in HTML format, the value must be first to encoded within RTF, according to RTF Extensions Specification. To set the content of the body message in HTML or Plain Text formats quickly, please, use SetBodyContent method. When setting a null value or empty string, the values of BodyRtf and Body properties are set null.

See Also