The DeleteLayout2 method deletes an existing layout for the specified object
HRESULT DeleteLayout2(
[in] BSTR p_wsObjectId
[in] BSTR p_wsLayoutId
);
Parameters:
p_pwsObjectId
[in] object id (watermark text, watermark image, overlay, signature or content)
p_pwsLayoutId
[in] layout id (obtained with [GetLayout2](getlayout2-help.html) )
Return values:
S_OK
on success or COM error codeNV_NOT_INITIALIZED
- Initialize was not calledNV_UNKNOWN_PROFILE
- no profile loadedNV_INVALID_LAYOUT
- layout not found for specified object