Represents a MAPI note ("sticky note") item. More...
Inherits Aspose::Email::Mapi::MapiMessageItemBase.
Public Member Functions | |
| System::DateTime | get_CreationDate () const |
| Gets the creation date of note More... | |
| void | set_CreationDate (System::DateTime value) |
| Sets the creation date of note More... | |
| NoteColor | get_Color () const |
| Gets the suggested background color of the Note object More... | |
| void | set_Color (NoteColor value) |
| Sets the suggested background color of the Note object More... | |
| int32_t | get_Width () const |
| Gets width of the visible message window in pixels More... | |
| void | set_Width (int32_t value) |
| Sets width of the visible message window in pixels More... | |
| int32_t | get_Height () const |
| Gets height of the visible message window in pixels More... | |
| void | set_Height (int32_t value) |
| Sets height of the visible message window in pixels More... | |
| int32_t | get_XPosition () const |
| Gets the distance, in pixels, from the left edge of the screen that a user interface displays a Note object More... | |
| void | set_XPosition (int32_t value) |
| Sets the distance, in pixels, from the left edge of the screen that a user interface displays a Note object More... | |
| int32_t | get_YPosition () const |
| Gets the distance, in pixels, from the top edge of the screen that a user interface displays a Note object More... | |
| void | set_YPosition (int32_t value) |
| Sets the distance, in pixels, from the top edge of the screen that a user interface displays a Note object More... | |
| MapiNote () | |
| Initializes a new instance of the MapiNote class. More... | |
| MapiNote (System::String subject, System::String body) | |
| Initializes a new instance of the MapiNote class. More... | |
| MapiNote (System::SharedPtr< MapiMessage > msg) | |
| Constructor More... | |
| System::SharedPtr< MapiMessage > | GetUnderlyingMessage () |
| Retrieves the underlying MapiMessage object. More... | |
| void | Save (System::SharedPtr< System::IO::Stream > stream, NoteSaveFormat saveFormat) |
| Saves this MapiNote to the given stream using specified format. More... | |
| void | Save (System::String filePath, NoteSaveFormat saveFormat) |
| Saves this MapiNote into file using specified format. More... | |
| System::SharedPtr< MapiMessage > | ConvertToMapiMessage () override |
| Converts note object to mapi message More... | |
Public Member Functions inherited from Aspose::Email::Mapi::MapiPropertyContainer | |
| virtual System::SharedPtr< MapiPropertyCollection > | get_Properties () |
| Gets the collection of properties. More... | |
| virtual int32_t | get_CodePage () |
| Gets the code page. More... | |
| System::SharedPtr< System::Text::Encoding > | get_CurrentEncoding () |
| MapiPropertyContainer () | |
| Initializes a new instance of the MapiPropertyContainer class. More... | |
| MapiPropertyContainer (System::SharedPtr< MapiPropertyCollection > properties) | |
| Initializes a new instance of the MapiPropertyContainer class. More... | |
| System::SharedPtr< MapiPropertyCollection > | GetSubStorages () |
| System::String | TryGetPropertyString (int64_t tag, int32_t codepage) |
| Try to get a property data as string with specified tag and code page. More... | |
| System::ArrayPtr< uint8_t > | TryGetPropertyData (int64_t tag) |
| Try to get the property data with specified tag key. More... | |
| System::String | TryGetPropertyString (int64_t tag) |
| Try to get a property data as string with specified tag. More... | |
| System::String | GetPropertyString (int64_t tag, int32_t codepage) |
| Gets the string value of the property specified by tag. More... | |
| System::String | GetPropertyString (int64_t tag) |
| Gets the string value of the property specified by tag. More... | |
| System::ArrayPtr< uint8_t > | GetPropertyBytes (int64_t tag) |
| Gets the string value of the property specified by tag. More... | |
| virtual void | SetProperty (System::SharedPtr< MapiProperty > value) |
| Sets the property. More... | |
| System::Nullable< int32_t > | GetPropertyInt32 (int64_t tag) |
| Gets the int32 value of the property specified by tag. More... | |
| System::Nullable< int64_t > | GetPropertyLong (int64_t tag) |
| Gets the value of the property specified by tag as Long (int64) type. More... | |
| System::Nullable< int16_t > | GetPropertyShort (int64_t tag) |
| Gets the value of the property specified by tag as Short type. More... | |
| System::Nullable< bool > | GetPropertyBoolean (int64_t tag) |
| Gets the value of the property specified by tag as Boolean type. More... | |
| System::Nullable< System::DateTime > | GetPropertyDateTime (int64_t key) |
| Gets the value of the property specified by tag as DateTime type. More... | |
| bool | IsStoreUnicodeOk () |
| Determines if string properties are Unicode encoded or not. More... | |
| bool | TryGetPropertyString (int64_t tag, System::String &value, int32_t codepage) |
| Gets the value of the specified property as String type. A return value indicates whether the operation succeeded. More... | |
| bool | TryGetPropertyString (int64_t tag, System::String &value) |
| Gets the value of the specified property as String type. A return value indicates whether the operation succeeded. More... | |
| bool | TryGetPropertyDateTime (int64_t tag, System::DateTime &value) |
| Gets the value of the specified property as DateTime type. A return value indicates whether the operation succeeded. More... | |
| bool | TryGetPropertyLong (int64_t tag, int64_t &value) |
| Gets the value of the specified property as Long type. A return value indicates whether the operation succeeded. More... | |
| bool | TryGetPropertyInt32 (int64_t tag, int32_t &value) |
| Gets the value of the specified property as Int32 type. A return value indicates whether the operation succeeded. More... | |
| virtual System::SharedPtr< Nodes::IMapiNode > | CreateMapiNode (System::String key) |
| Creates the mapi node. More... | |
| void | SetProperty (int64_t tag, System::ArrayPtr< uint8_t > data) |
| Set the property. More... | |
| void | SetProperty (int64_t tag, System::String value, OutlookMessageFormat format) |
| Set the string property. More... | |
| void | SetProperty (int64_t tag, System::String value, bool isUnicode) |
| Set the string property. More... | |
| void | SetProperty (int64_t tag, System::String value, System::SharedPtr< System::Text::Encoding > nonUnicodeEncoding) |
| Set the string property. More... | |
| void | SetProperty (int64_t tag, System::String value) |
| Set the string property with CurrentEncoding More... | |
| void | SetProperty (int64_t tag, System::DateTime dateTime) |
| Set the datetime property. More... | |
| void | SetPropertyLong (int64_t tag, int64_t value) |
| Set the long property. More... | |
Protected Member Functions | |
| virtual | ~MapiNote () |
Protected Member Functions inherited from Aspose::Email::Mapi::MapiPropertyContainer | |
| virtual | ~MapiPropertyContainer () |
Additional Inherited Members | |
Public Attributes inherited from Aspose::Email::Mapi::MapiPropertyContainer | |
| int32_t | codePage |
| The code page. More... | |
| System::SharedPtr< MapiPropertyCollection > | propertyDictionary |
| The property dictionary. More... | |
Static Public Attributes inherited from Aspose::Email::Mapi::MapiPropertyContainer | |
| static const int32_t | DefaultCodePage = 20127 |
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.
[C#]
[Visual Basic]
| Aspose::Email::Mapi::MapiNote::MapiNote | ( | ) |
Initializes a new instance of the MapiNote class.
| Aspose::Email::Mapi::MapiNote::MapiNote | ( | System::String | subject, |
| System::String | body | ||
| ) |
Initializes a new instance of the MapiNote class.
| subject | The message subject. |
| body | The message body. |
| Aspose::Email::Mapi::MapiNote::MapiNote | ( | System::SharedPtr< MapiMessage > | msg | ) |
Constructor
| msg | The MapiMessage that represents IPM.StickyNote message class |
|
protectedvirtual |
|
overridevirtual |
Converts note object to mapi message
Reimplemented from Aspose::Email::Mapi::MapiMessageItemBase.
| NoteColor Aspose::Email::Mapi::MapiNote::get_Color | ( | ) | const |
Gets the suggested background color of the Note object
| System::DateTime Aspose::Email::Mapi::MapiNote::get_CreationDate | ( | ) | const |
Gets the creation date of note
| int32_t Aspose::Email::Mapi::MapiNote::get_Height | ( | ) | const |
Gets height of the visible message window in pixels
| int32_t Aspose::Email::Mapi::MapiNote::get_Width | ( | ) | const |
Gets width of the visible message window in pixels
| int32_t Aspose::Email::Mapi::MapiNote::get_XPosition | ( | ) | const |
Gets the distance, in pixels, from the left edge of the screen that a user interface displays a Note object
| int32_t Aspose::Email::Mapi::MapiNote::get_YPosition | ( | ) | const |
Gets the distance, in pixels, from the top edge of the screen that a user interface displays a Note object
| System::SharedPtr<MapiMessage> Aspose::Email::Mapi::MapiNote::GetUnderlyingMessage | ( | ) |
Retrieves the underlying MapiMessage object.
Retrieves the underlying MAPI message from a MapiNote object and prints out its message class.
[C#]
[Visual Basic]
| void Aspose::Email::Mapi::MapiNote::Save | ( | System::SharedPtr< System::IO::Stream > | stream, |
| NoteSaveFormat | saveFormat | ||
| ) |
Saves this MapiNote to the given stream using specified format.
The supported save format is MSG.
| stream | A stream to save to. |
| saveFormat | A save format. |
| ArgumentNullException | stream is null. |
| NotSupportedException | stream does not support writing. |
| NotSupportedException | The specified format is not supported. |
| void Aspose::Email::Mapi::MapiNote::Save | ( | System::String | filePath, |
| NoteSaveFormat | saveFormat | ||
| ) |
Saves this MapiNote into file using specified format.
The supported save format is MSG.
| filePath | A file name. |
| saveFormat | A save format. |
| ArgumentException | filePath is null or empty. |
| NotSupportedException | some save option is not supported |
| void Aspose::Email::Mapi::MapiNote::set_Color | ( | NoteColor | value | ) |
Sets the suggested background color of the Note object
| void Aspose::Email::Mapi::MapiNote::set_CreationDate | ( | System::DateTime | value | ) |
Sets the creation date of note
| void Aspose::Email::Mapi::MapiNote::set_Height | ( | int32_t | value | ) |
Sets height of the visible message window in pixels
| void Aspose::Email::Mapi::MapiNote::set_Width | ( | int32_t | value | ) |
Sets width of the visible message window in pixels
| void Aspose::Email::Mapi::MapiNote::set_XPosition | ( | int32_t | value | ) |
Sets the distance, in pixels, from the left edge of the screen that a user interface displays a Note object
| void Aspose::Email::Mapi::MapiNote::set_YPosition | ( | int32_t | value | ) |
Sets the distance, in pixels, from the top edge of the screen that a user interface displays a Note object