IUIX_Combo::SetItemStyle Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
Line 2: Line 2:
 
{{#customTitle:IUIX_Combo::SetItemStyle Method}}
 
{{#customTitle:IUIX_Combo::SetItemStyle Method}}
 
{{#parentPage:PXV:IUIX_Combo|SetItemStyle Method|method}}
 
{{#parentPage:PXV:IUIX_Combo|SetItemStyle Method|method}}
{{ToWrite}}
 
 
{{ToReview}}
 
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
Sets style of a required item.
  
 
== Syntax ==
 
== Syntax ==
Line 14: Line 13:
 
== Parameters ==
 
== Parameters ==
 
;nItem
 
;nItem
:[in]  Value of LONG.
+
:[in]  number of an item to set new style for.
 
;nStyle
 
;nStyle
:[in]  Value of LONG.
+
:[in]  specifies style flags from [[PXV:UIX_ComboItemStyleFlags|UIX_ComboItemStyleFlags]] enumeration.
 
;nStyleMask
 
;nStyleMask
:[in, defaultvalue(0)]  Value of LONG.
+
:[in, defaultvalue(0)]  specifies style mask flags from [[PXV:UIX_ComboItemStyleFlags|UIX_ComboItemStyleFlags]] enumeration. If NOT set to 0, this parameter removes specified styles from current item style and applies only those flags of '''nStyle''' parameter to the combo box item that were set in '''nStyleMask'''. For instance, if previous item style was set to UIX_ComboItemStyle_Bold, new item style is set to UIX_ComboItemStyle_Disabled, and '''nStyleMask''' is set to (UIX_ComboItemStyle_Bold | UIX_ComboItemStyle_Disabled), then a given item will be first set to .. *to be continued*.
  
 
== Return Value ==
 
== Return Value ==

Revision as of 03:23, 19 May 2015


Sets style of a required item.

Syntax

HRESULT SetItemStyle([in]                   LONG  nItem,
                     [in]                   LONG  nStyle,
                     [in, defaultvalue(0)]  LONG  nStyleMask);

Parameters

nItem
[in] number of an item to set new style for.
nStyle
[in] specifies style flags from UIX_ComboItemStyleFlags enumeration.
nStyleMask
[in, defaultvalue(0)] specifies style mask flags from UIX_ComboItemStyleFlags enumeration. If NOT set to 0, this parameter removes specified styles from current item style and applies only those flags of nStyle parameter to the combo box item that were set in nStyleMask. For instance, if previous item style was set to UIX_ComboItemStyle_Bold, new item style is set to UIX_ComboItemStyle_Disabled, and nStyleMask is set to (UIX_ComboItemStyle_Bold | UIX_ComboItemStyle_Disabled), then a given item will be first set to .. *to be continued*.

Return Value

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

See Also

See also IUIX_Combo.