GetCommandOptionBool Method (IDocument)

GetCommandOptionBool Method (IDocument) | Send Feedback
See Also Example

Var
  Command option as defined in dsCommandOptionBool_e

Value[out]
  Boolean value of the specified command option

Result[out]
  Status of getting the Boolean value of the command option as defined in dsGetCommandOptionResult_e

Gets the Boolean value of the specified command option for the document.

# Syntax

Visual Basic |
--- | ---
    Sub GetCommandOptionBool( _
       ByVal Var As dsCommandOptionBool_e, _
       ByRef Value As System.Boolean, _
       ByRef Result As dsGetCommandOptionResult_e _
    )

C# |
--- | ---
    void GetCommandOptionBool(
       dsCommandOptionBool_e Var,
       out System.bool Value,
       out dsGetCommandOptionResult_e Result
    )

JavaScript |
--- | ---
    GetCommandOptionBool(
       Var : String
    ) : {
       Value : Boolean,
       Result : String
    }

COM native C++ |
--- | ---
    HRESULT GetCommandOptionBool(
       dsCommandOptionBool_e Var,
       VARIANT_BOOL* Value,
       dsGetCommandOptionResult_e* Result
    )

C++ |
--- | ---
    DSRESULT GetCommandOptionBool(
       dsCommandOptionBool_e Var,
       bool* Value,
       dsGetCommandOptionResult_e* Result
    )

#### Parameters

Var
  Command option as defined in dsCommandOptionBool_e
Value[out]
  Boolean value of the specified command option
Result[out] or Return Value
  Status of getting the Boolean value of the command option as defined in dsGetCommandOptionResult_e

# Example

Get and Set Command Options (C#)
Get and Set Command Options (VB.NET)
Get and Set Command Options (VBA)

# See Also

####

IDocument Interface
IDocument Members
IDocument::SetCommandOptionBool Method
IApplicationOptions::GetApplicationOptionBool Method ()
IApplicationOptions::SetApplicationOptionBool Method ()

# Availability

DraftSight V1R1.1