MapiNote
Contents
[
Hide
]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
| Name | Description |
|---|---|
| MapiNote (3 overloads) | Initializes a new instance of the MapiNote class. |
Methods
| Name | Description |
|---|---|
| ConvertToMapiMessage | Converts note object to mapi message |
| get_Color | Gets the suggested background color of the Note object |
| get_CreationDate | Gets the creation date of note |
| get_Height | Gets height of the visible message window in pixels |
| get_Width | Gets width of the visible message window in pixels |
| get_XPosition | Gets the distance, in pixels, from the left edge of the screen that a user interface displays a Note object |
| get_YPosition | Gets the distance, in pixels, from the top edge of the screen that a user interface displays a Note object |
| GetUnderlyingMessage | Retrieves the underlying MapiMessage object. |
| Save (2 overloads) | Saves this MapiNote to the given stream using specified format. |
| set_Color | Sets the suggested background color of the Note object |
| set_CreationDate | Sets the creation date of note |
| set_Height | Sets height of the visible message window in pixels |
| set_Width | Sets width of the visible message window in pixels |
| set_XPosition | Sets the distance, in pixels, from the left edge of the screen that a user interface displays a Note object |
| set_YPosition | Sets the distance, in pixels, from the top edge of the screen that a user interface displays a Note object |