SetCommandOptionBool Method (IDocument)

SetCommandOptionBool Method (IDocument) | Send Feedback
See Also Example

Var
  Command option as defined in dsCommandOptionBool_e

Value
  Boolean value for the specified command option

Result[out]
  Status of setting the Boolean value of the command option as defined in dsSetCommandOptionResult_e

Sets the Boolean value for the specified command option for the document.

# Syntax

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

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

JavaScript |
--- | ---
    SetCommandOptionBool(
       Var : String,
       Value : Boolean
    ) : String

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

C++ |
--- | ---
    DSRESULT SetCommandOptionBool(
       dsCommandOptionBool_e Var,
       bool Value,
       dsSetCommandOptionResult_e* Result
    )

#### Parameters

Var
  Command option as defined in dsCommandOptionBool_e
Value
  Boolean value for the specified command option
Result[out] or Return Value
  Status of setting the Boolean value of the command option as defined in dsSetCommandOptionResult_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::GetCommandOptionBool Method
IApplicationOptions::SetApplicationOptionBool Method ()
IApplicationOptions::GetApplicationOptionBool Method ()

# Availability

DraftSight V1R1.1