MapiNote

Inheritance: java.lang.Object, com.aspose.email.MapiPropertyContainer, com.aspose.email.MapiMessageItemBase

public final class MapiNote extends MapiMessageItemBase

Represents outlook Note object (“sticky note”)

Constructors

Constructor Description
MapiNote() Initializes a new instance of the MapiNote class.
MapiNote(String subject, String body) Initializes a new instance of the MapiNote class.

Methods

Method Description
getCreationDate() Gets or sets the creation date of note
setCreationDate(Date value) Gets or sets the creation date of note
getColor() Gets or sets the suggested background color of the Note object
setColor(int value) Gets or sets the suggested background color of the Note object
getWidth() Gets or sets width of the visible message window in pixels
setWidth(int value) Gets or sets width of the visible message window in pixels
getHeight() Gets or sets height of the visible message window in pixels
setHeight(int value) Gets or sets height of the visible message window in pixels
getXPosition() Gets or sets the distance, in pixels, from the left edge of the screen that a user interface displays a Note object
setXPosition(int value) Gets or sets the distance, in pixels, from the left edge of the screen that a user interface displays a Note object
getYPosition() Gets or sets the distance, in pixels, from the top edge of the screen that a user interface displays a Note object
setYPosition(int value) Gets or sets the distance, in pixels, from the top edge of the screen that a user interface displays a Note object
save(OutputStream stream, int saveFormat) Saves this MapiNote to the given stream using specified format.
save(String filePath, int saveFormat) Saves this MapiNote into file using specified format.

MapiNote()

public MapiNote()

Initializes a new instance of the MapiNote class.

MapiNote(String subject, String body)

public MapiNote(String subject, String body)

Initializes a new instance of the MapiNote class.

Parameters:

Parameter Type Description
subject java.lang.String The message subject.
body java.lang.String The message body.

getCreationDate()

public final Date getCreationDate()

Gets or sets the creation date of note

Returns: java.util.Date

setCreationDate(Date value)

public final void setCreationDate(Date value)

Gets or sets the creation date of note

Parameters:

Parameter Type Description
value java.util.Date

getColor()

public final int getColor()

Gets or sets the suggested background color of the Note object

Returns: int

setColor(int value)

public final void setColor(int value)

Gets or sets the suggested background color of the Note object

Parameters:

Parameter Type Description
value int

getWidth()

public final int getWidth()

Gets or sets width of the visible message window in pixels

Returns: int

setWidth(int value)

public final void setWidth(int value)

Gets or sets width of the visible message window in pixels

Parameters:

Parameter Type Description
value int

getHeight()

public final int getHeight()

Gets or sets height of the visible message window in pixels

Returns: int

setHeight(int value)

public final void setHeight(int value)

Gets or sets height of the visible message window in pixels

Parameters:

Parameter Type Description
value int

getXPosition()

public final int getXPosition()

Gets or sets the distance, in pixels, from the left edge of the screen that a user interface displays a Note object

Returns: int

setXPosition(int value)

public final void setXPosition(int value)

Gets or sets the distance, in pixels, from the left edge of the screen that a user interface displays a Note object

Parameters:

Parameter Type Description
value int

getYPosition()

public final int getYPosition()

Gets or sets the distance, in pixels, from the top edge of the screen that a user interface displays a Note object

Returns: int

setYPosition(int value)

public final void setYPosition(int value)

Gets or sets the distance, in pixels, from the top edge of the screen that a user interface displays a Note object

Parameters:

Parameter Type Description
value int

save(OutputStream stream, int saveFormat)

public final void save(OutputStream stream, int saveFormat)

Saves this MapiNote to the given stream using specified format.

Parameters:

Parameter Type Description
stream java.io.OutputStream
saveFormat int

save(String filePath, int saveFormat)

public final void save(String filePath, int saveFormat)

Saves this MapiNote into file using specified format.

Parameters:

Parameter Type Description
filePath java.lang.String
saveFormat int