IUIX_CmdBar::FindFirstItemByCmdName Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IUIX_CmdBar::FindFirstItemByCmdName Method}}
 
{{#customTitle:IUIX_CmdBar::FindFirstItemByCmdName Method}}
{{#parentPage:PXV:IUIX_CmdBar#Methods|FindFirstItemByCmdName Method|method}}
+
{{#parentPage:PXV:IUIX_CmdBar#Methods|FindFirstItemByCmdName|method}}
{{ToWrite}}
+
 
{{ToReview}}
 
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
Gets [[PXV:IUIX_CmdItem_Index|Index]] of the first item in the commands bar that corresponds to the command's name.
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT FindFirstItemByCmdName([in]          BSTR            pCmdName,
+
<pre class="brush:cpp;gutter:false">HRESULT FindFirstItemByCmdName([in]          BSTR            sCmdName,
                               [out, retval]  IUIX_CmdItem**  ppItem);</pre>
+
                               [out, retval]  IUIX_CmdItem**  pItem);</pre>
  
 
== Parameters ==
 
== Parameters ==
;pCmdName
+
;sCmdName
:[in]  Value of BSTR.
+
:[in]  Value of BSTR containing the command's name.
;ppItem
+
;pItem
:[out, retval]  Pointer to [[PXV:IUIX_CmdItem|IUIX_CmdItem]].
+
:[out, retval]  Pointer to [[PXV:IUIX_CmdItem|IUIX_CmdItem]] containing the resulting [[PXV:IUIX_CmdItem_Index|Index]] of the command in the command bar.
  
 
== Return Value ==
 
== Return Value ==

Latest revision as of 08:13, 23 March 2016


Gets Index of the first item in the commands bar that corresponds to the command's name.

Syntax

HRESULT FindFirstItemByCmdName([in]           BSTR            sCmdName,
                               [out, retval]  IUIX_CmdItem**  pItem);

Parameters

sCmdName
[in] Value of BSTR containing the command's name.
pItem
[out, retval] Pointer to IUIX_CmdItem containing the resulting Index of the command in the command bar.

Return Value

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

See Also

IUIX_CmdBar