IPXS_PDFVariant::Arr_GetName Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
m (Automatic page editing by robot)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
__NOTOC__
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IPXS_PDFVariant::Arr_GetName Method}}
 
{{#customTitle:IPXS_PDFVariant::Arr_GetName Method}}
{{#parentPage:PXV:IPXS_PDFVariant|method}}
+
{{#parentPage:PXV:IPXS_PDFVariant#Methods|Arr_GetName|method}}
{{ToWrite}}
+
 
{{ToReview}}
 
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
The Returns the value of a specified element of an array as an unicode string ('''BSTR'''). If specified element type is not <code>PVT_Name</code> <code>sDefVal</code> is returned.
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT Arr_GetName([in] ULONG nIndex, [in] BSTR pDefVal, [out, retval] BSTR* ppVal);</pre>
+
<pre class="brush:cpp;gutter:false">HRESULT Arr_GetName([in]           ULONG nIndex,
 +
                    [in]           BSTR   sDefVal,
 +
                    [out, retval] BSTR* sVal);</pre>
  
 
== Parameters ==
 
== Parameters ==
;''nIndex''
+
;nIndex
:[in] Value of ULONG.
+
:[in] Specifies the index of the array element.
;''pDefVal''
+
;sDefVal
:[in] Value of BSTR.
+
:[in] Default value that will be returned when specified index is out of range or the element type is not <code>PVT_Name</code>.
;''ppVal''
+
;sVal
:[out, retval]  Pointer to BSTR.
+
:[out, retval]  Pointer to BSTR that receives the returned value.
  
 
== Return Value ==
 
== Return Value ==
Returns S_OK if operation was successful or error code in other cases.
+
Returns S_OK if operation was successful or error code in other cases. Returns S_FALSE when <code>sDefVal</code> returned.
  
 
== See Also ==
 
== See Also ==
See also [[PXV:IPXS_PDFVariant|IPXS_PDFVariant]].
+
[[PXV:IPXS_PDFVariant|IPXS_PDFVariant]]

Latest revision as of 03:42, 15 June 2015


The Returns the value of a specified element of an array as an unicode string (BSTR). If specified element type is not PVT_Name sDefVal is returned.

Syntax

HRESULT Arr_GetName([in]           ULONG  nIndex,
                    [in]           BSTR   sDefVal,
                    [out, retval]  BSTR*  sVal);

Parameters

nIndex
[in] Specifies the index of the array element.
sDefVal
[in] Default value that will be returned when specified index is out of range or the element type is not PVT_Name.
sVal
[out, retval] Pointer to BSTR that receives the returned value.

Return Value

Returns S_OK if operation was successful or error code in other cases. Returns S_FALSE when sDefVal returned.

See Also

IPXS_PDFVariant