/// <summary> /// Gets the rich text field of the item /// </summary> /// <param name="strRTF">rich text content</param> /// <returns>true on success</returns> public bool GetRTF(ref string strRTF) { IntPtr szString; if (!ObjectGetRTF(pObject, out szString)) { szString = IntPtr.Zero; } strRTF = NetMAPI.MarshalString(szString); return(szString != IntPtr.Zero); }
/// <summary> /// Gets the ANSI text field of the item, or optionally the "suitable" text /// </summary> /// <param name="strBody">text content</param> /// <param name="bAutoDetect">use the MessageEditorFormat to determine which field to query</param> /// <returns>true on success</returns> public bool GetBody(out string strBody, bool bAutoDetect) { IntPtr szString; if (!ObjectGetBody(pObject, out szString, bAutoDetect)) { szString = IntPtr.Zero; } strBody = NetMAPI.MarshalString(szString); return(szString != IntPtr.Zero); }