ICabNode::GetBool Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
__NOTOC__
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:ICabNode::GetBool Method}}
 
{{#customTitle:ICabNode::GetBool Method}}
 +
{{#parentPage:PXV:ICabNode#Methods|GetBool|method}}
 +
{{ToWrite}}
 +
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
Returns the subnode value as a Boolean value (performing acceptable [[PXV:ICabNode:TypeConversions|type conversion]] if necessary).
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT GetBool([in] LPWSTR pKey, [in, optional] VARIANT_BOOL defVal, [out, retval] VARIANT_BOOL* pVal);</pre>
+
<pre class="brush:cpp;gutter:false">HRESULT GetBool([in]                   LPWSTR         sKey,
 +
                [in, defaultvalue(0)] VARIANT_BOOL   bDefVal,
 +
                [out, retval]         VARIANT_BOOL* bVal);</pre>
  
 
== Parameters ==
 
== Parameters ==
;''pKey''
+
;sKey
 
:[in]  Value of LPWSTR.
 
:[in]  Value of LPWSTR.
;''defVal''
+
:Identifies a subnode. See [[PXV:CAB:SubnodeIdentification|CAB subnode identification syntax]].
:[in, optional]  Value of VARIANT_BOOL.
+
;bDefVal
;''pVal''
+
:[in, defaultvalue(0)]  Value of VARIANT_BOOL.
 +
:A value to be returned in case of error (subnode does not exist, has incompatible type etc.).
 +
;bVal
 
:[out, retval]  Pointer to VARIANT_BOOL.
 
:[out, retval]  Pointer to VARIANT_BOOL.
 
+
:The address of a variable that receives a referenced subnode 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.
  
 
== See Also ==
 
== See Also ==
See also [[PXV:ICabNode|ICabNode]].
+
[[PXV:ICabNode|ICabNode]]

Latest revision as of 06:53, 15 June 2015


Returns the subnode value as a Boolean value (performing acceptable type conversion if necessary).

Syntax

HRESULT GetBool([in]                   LPWSTR         sKey,
                [in, defaultvalue(0)]  VARIANT_BOOL   bDefVal,
                [out, retval]          VARIANT_BOOL*  bVal);

Parameters

sKey
[in] Value of LPWSTR.
Identifies a subnode. See CAB subnode identification syntax.
bDefVal
[in, defaultvalue(0)] Value of VARIANT_BOOL.
A value to be returned in case of error (subnode does not exist, has incompatible type etc.).
bVal
[out, retval] Pointer to VARIANT_BOOL.
The address of a variable that receives a referenced subnode value.

Return Value

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

See Also

ICabNode