SetCommandOptionString Method (IDocument)

SetCommandOptionString Method (IDocument) | Send Feedback
See Also Example

Var
  Command option as defined in dsCommandOptionString_e

Value
  String value for the specified command option

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

Sets the string value for the specified command option in the document.

# Syntax

Visual Basic |
--- | ---
    Sub SetCommandOptionString( _
       ByVal Var As dsCommandOptionString_e, _
       ByVal Value As System.String, _
       ByRef Result As dsSetCommandOptionResult_e _
    )

C# |
--- | ---
    void SetCommandOptionString(
       dsCommandOptionString_e Var,
       System.string Value,
       out dsSetCommandOptionResult_e Result
    )

JavaScript |
--- | ---
    SetCommandOptionString(
       Var : String,
       Value : String
    ) : String

COM native C++ |
--- | ---
    HRESULT SetCommandOptionString(
       dsCommandOptionString_e Var,
       BSTR Value,
       dsSetCommandOptionResult_e* Result
    )

C++ |
--- | ---
    DSRESULT SetCommandOptionString(
       dsCommandOptionString_e Var,
       const dsString& Value,
       dsSetCommandOptionResult_e* Result
    )

#### Parameters

Var
  Command option as defined in dsCommandOptionString_e
Value
  String value for the specified command option
Result[out] or Return Value
  Status of setting the string 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::GetCommandOptionString Method
IApplicationOptions::SetApplicationOptionString Method ()
IApplicationOptions::GetApplicationOptionString Method ()

# Availability

DraftSight V1R1.1