MapiMessageItemBase.SetBodyRtf

MapiMessageItemBase.SetBodyRtf method

Sets the body of the item in RTF format, optionally compressing it.

public void SetBodyRtf(string content, bool compression)
ParameterTypeDescription
contentStringThe body in RTF.
compressionBooleantrue to store the RTF body compressed.

Remarks

Setting a value updates the plain-text body and the compressed RTF property as well. The value must be RTF; to set an HTML or plain-text body, use SetBodyContent. Setting null or an empty string clears both bodies.

See Also