MapiNote

MapiNote class

Inherits: Aspose::Email::Mapi::MapiMessageItemBase

Represents a MAPI note (“sticky note”) item.

This class serves as a wrapper for MapiMessage to simplify the process of handling note information from MAPI properties. It provides a more intuitive interface for accessing and manipulating note data within the MAPI message.

The following example demonstrates how to get a MapiNote object from a MapiMessage .

var msg = MapiMessage.Load("note.msg");
 
// Check if the loaded message is a supported note type
if (msg.SupportedType == MapiItemType.Note)
{
 // Convert the MAPI message to a MapiNote object
    var mapiNote = (MapiNote)msg.ToMapiMessageItem();
 
 // Display some note info
    Console.WriteLine(mapiNote.Color);
    Console.WriteLine(mapiNote.Body);
}
Dim msg = MapiMessage.Load("note.msg")
 
' Check if the loaded message is a supported note type
If msg.SupportedType = MapiItemType.Note Then
    ' Convert the MAPI message to a MapiNote object
    Dim mapiNote = DirectCast(msg.ToMapiMessageItem(), MapiNote)
 
 ' Display some note info
    Console.WriteLine(mapiNote.Color)
    Console.WriteLine(mapiNote.Body)
End If

Constructors

NameDescription
MapiNote (3 overloads)Initializes a new instance of the MapiNote class.

Methods

NameDescription
ConvertToMapiMessageConverts note object to mapi message
get_ColorGets the suggested background color of the Note object
get_CreationDateGets the creation date of note
get_HeightGets height of the visible message window in pixels
get_WidthGets width of the visible message window in pixels
get_XPositionGets the distance, in pixels, from the left edge of the screen that a user interface displays a Note object
get_YPositionGets the distance, in pixels, from the top edge of the screen that a user interface displays a Note object
GetUnderlyingMessageRetrieves the underlying MapiMessage object.
Save (2 overloads)Saves this MapiNote to the given stream using specified format.
set_ColorSets the suggested background color of the Note object
set_CreationDateSets the creation date of note
set_HeightSets height of the visible message window in pixels
set_WidthSets width of the visible message window in pixels
set_XPositionSets the distance, in pixels, from the left edge of the screen that a user interface displays a Note object
set_YPositionSets the distance, in pixels, from the top edge of the screen that a user interface displays a Note object