CreateStationery method

Creates a new Stationery object in the Folder Page.

Syntax


C++
HRESULT CreateStationery(
   LONG Index,
   BSTR Name,
   IERUItem* pItem,
   IERUStationery** ppStationery)
Scripting languages
Set Stationery = Object.CreateStationery(
   Index as Long,
   Name as String,
   Item as IERUItem)

Parameters


Index

The position the Stationery should occupy in the stationery list. This affects the ordering of the stationery in the UI. The index starts from 1.

Name

The name of the new Stationery.

pItem

The principal item to use as Stationery.

ppRoutingTarget

Upon return, this value will contain an IERUStationery interface pointer to the Stationery object that has been inserted.

Return value


C++

The return code.

Scripting languages

An IERUStationery interface pointer to the Stationery that has just been inserted.

Remarks


Note: If the index is less than zero, the new stationery is appended to the end of the stationery list.

Home

Interface

IERUStationeryManger


See also

IERUStationery