IBitSet::SetWithGrow Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
Line 9: Line 9:
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT SetWithGrow([in]                    ULONG        nIndex,
+
<pre class="brush:cpp;gutter:false">HRESULT SetWithGrow([in]                    ULONG        Index,
                     [in, defaultvalue(-1)]  VARIANT_BOOL  bOn);</pre>
+
                     [in, defaultvalue(-1)]  VARIANT_BOOL  On);</pre>
  
 
== Parameters ==
 
== Parameters ==
;nIndex
+
;Index
 
:[in]  Index of the item that needs to be set with a value.
 
:[in]  Index of the item that needs to be set with a value.
;bOn
+
;On
 
:[in, defaultvalue(-1)]  New value of the given item.
 
:[in, defaultvalue(-1)]  New value of the given item.
  

Revision as of 06:46, 12 June 2015

Sets a given bit-set item with a given value. If the item's index exceeds the bit-set size, it will be expanded to accommodate that item.

New added items will be filled with a false value.

Syntax

HRESULT SetWithGrow([in]                    ULONG         Index,
                    [in, defaultvalue(-1)]  VARIANT_BOOL  On);

Parameters

Index
[in] Index of the item that needs to be set with a value.
On
[in, defaultvalue(-1)] New value of the given item.

Return Value

Returns S_OK if the operation was successful, otherwise an error code is returned.

See Also

IBitSet