IPXS_PDFVariant::Arr_Insert Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
Line 14: Line 14:
 
== Parameters ==
 
== Parameters ==
 
;pItem
 
;pItem
:[in]  Pointer to [[PXV:IPXS_PDFVariant|IPXS_PDFVariant]], which should be inserted.
+
:[in]  Pointer to [[PXV:IPXS_PDFVariant|IPXS_PDFVariant]], that should be inserted.
 
;nBefore
 
;nBefore
 
:[in, defaultvalue(-1)] Specifies index of element before which we will insert new one. If index is greater or equal array size new element will be inserted at the end of array.
 
:[in, defaultvalue(-1)] Specifies index of element before which we will insert new one. If index is greater or equal array size new element will be inserted at the end of array.

Revision as of 02:40, 25 May 2015


Insert variant or its copy into array container.

Syntax

HRESULT Arr_Insert([in]                    IPXS_PDFVariant*  pItem,
                   [in, defaultvalue(-1)]  ULONG             nBefore,
                   [in, defaultvalue(0)]   VARIANT_BOOL      bClone);

Parameters

pItem
[in] Pointer to IPXS_PDFVariant, that should be inserted.
nBefore
[in, defaultvalue(-1)] Specifies index of element before which we will insert new one. If index is greater or equal array size new element will be inserted at the end of array.
bClone
[in, defaultvalue(0)] Determine will we insert original variant or its clone. Please note that it is strongly not recommended to insert one direct variant into more that one container as it may result unpredictable behavior. If you need to insert exactly same value into more than one container you should make it indirect and insert clone of this indirect value (yes, will be inserted clone of indirect reference, but not value itself).

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also

IPXS_PDFVariant