|
RDOTemplates collection provides
access to the list of templates in the current profile or a given Exchange
mailbox
Returned by:
RDOSession.Templates
RDOExchangeMailboxStore.Templates
The example below below creates two
new templates.
RDOSession
session = new RDOSession();
session.MAPIOBJECT =
Globals.ThisAddIn.Application.Session.MAPIOBJECT;
RDOTemplates templates = session.Templates;
RDOTemplate template1 = templates.Add(
"See
report",
"Please see
the attached last quarter report.");
RDOTemplate template2 = templates.Add(
"Submit
support ticket",
@"Please
submit support ticket at<br>"+
"<a href=""https://www.mycompany.demo/support"">" +
"https://www.mycompany.demo/support</a>.");
templates.Save(); //can also
call RDOTemplate.Save
|
Properties
Methods
|
Derived from:
IDispatch
|
|
Properties |
|
_NewEnum
|
Hidden .Returns
IEnumVariant object that allows
foreach (C#) and "for
each" (VB) iterators.
|
|
Count
|
Integer Read-only.
Returns the number of RDOTemplate objects in the collection.
|
|
_Item[IndexOrTitle]
|
Hidden, default collection property.
|
|
|
Methods |
|
Add(Title, Contents)
|
Add the specified title and contents to the list of templates and returns the corresponding
RDOTemplate object.
If a template with the given title already exists, it will be
overwritten.
|
see example above. |
Clear
|
Deletes all templates in the collection.
|
|
Item(IndexOrTitle)
|
Returns RDOTemplate object corresponding
to the argument.
IndexOrTitle - Either an integer index (1
through Count), a string (title of the template).
If no template object with the give title can be found, null is returned.
If integer index is used (1 through Count), an exception is raised if
the index is outside the range.
|
|
Remove(IndexOrTitle)
|
Deletes RDOTemplate object corresponding
to the argument.
IndexOrTitle - Either an integer index (1 through
Count), a string (title of thetemplater).
If no template object with the give title can be found, null is returned.
If integer index is used (1 through Count), an exception is raised if
the index is outside the range.
|
|
Save
|
Saves all modified templates in the collection
|
|
|
|