IUIX_Combo::SelItemByText Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
{{#customTitle:IUIX_Combo::SelItemByText Method}}
 
{{#customTitle:IUIX_Combo::SelItemByText Method}}
 
{{#parentPage:PXV:IUIX_Combo#Methods|SelItemByText|method}}
 
{{#parentPage:PXV:IUIX_Combo#Methods|SelItemByText|method}}
{{ToReview}}
+
 
  
 
Selects an item with a required ''text''.
 
Selects an item with a required ''text''.
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT SelItemByText([in]                              BSTR  pText,
+
<pre class="brush:cpp;gutter:false">HRESULT SelItemByText([in]                              BSTR  sText,
 
                       [in, defaultvalue(0)]              LONG  nFlags,
 
                       [in, defaultvalue(0)]              LONG  nFlags,
                       [out, retval, defaultvalue(NULL)]  LONG*  pIndex);</pre>
+
                       [out, retval, defaultvalue(NULL)]  LONG*  nIndex);</pre>
  
 
== Parameters ==
 
== Parameters ==
;pText
+
;sText
 
:[in]  text of an item that is to be selected.
 
:[in]  text of an item that is to be selected.
 
;nFlags
 
;nFlags
 
:[in, defaultvalue(0)]  Specifies parameters of text search. See [[PXV:UIX_FindItemByTextFlags|UIX_FindItemByTextFlags]] for a full list of available search flags.
 
:[in, defaultvalue(0)]  Specifies parameters of text search. See [[PXV:UIX_FindItemByTextFlags|UIX_FindItemByTextFlags]] for a full list of available search flags.
;pIndex
+
;nIndex
 
:[out, retval, defaultvalue(NULL)]  returns value of selected item index. Returns -1 if no items with given text search parameters were found. If there is more than one item that matches given text search parameters, an item which is the first of them in a list will be selected.
 
:[out, retval, defaultvalue(NULL)]  returns value of selected item index. Returns -1 if no items with given text search parameters were found. If there is more than one item that matches given text search parameters, an item which is the first of them in a list will be selected.
  
 
== Return Value ==
 
== Return Value ==
Returns S_OK if operation was successful or error code in other cases.
+
Returns S_OK if the operation was successful, or will return an error code if it fails.  
  
 
== See Also ==
 
== See Also ==
 
[[PXV:IUIX_Combo|IUIX_Combo]]
 
[[PXV:IUIX_Combo|IUIX_Combo]]

Latest revision as of 14:22, 15 June 2015


Selects an item with a required text.

Syntax

HRESULT SelItemByText([in]                               BSTR   sText,
                      [in, defaultvalue(0)]              LONG   nFlags,
                      [out, retval, defaultvalue(NULL)]  LONG*  nIndex);

Parameters

sText
[in] text of an item that is to be selected.
nFlags
[in, defaultvalue(0)] Specifies parameters of text search. See UIX_FindItemByTextFlags for a full list of available search flags.
nIndex
[out, retval, defaultvalue(NULL)] returns value of selected item index. Returns -1 if no items with given text search parameters were found. If there is more than one item that matches given text search parameters, an item which is the first of them in a list will be selected.

Return Value

Returns S_OK if the operation was successful, or will return an error code if it fails.

See Also

IUIX_Combo