The GetLayout2 method retrieves the layout id for the specified object in the loaded profile
HRESULT GetLayout2(
[in, string] BSTR p_wsObjectId,
[in] LONG p_nIndex,
[out, string] BSTR* p_pwsLayoutId
);
Parameters:
p_wsObjectId
[in] object id (watermark text, watermark image, overlay, signature or content)
p_nIndex
[out] layout index
p_pwsLayoutId
[out] layout id
Return values:
S_OK on success or COM error codeNV_NOT_INITIALIZED - Initialize was not calledNV_UNKNOWN_PROFILE - no profile loadedNV_INVALID_OPTION - wrong object idNV_INVALID_LAYOUT - layout not found for specified objectRemarks:
For layout options, see Working with Layout objects.