Condividi tramite


IEditorOptions.SetOptionValue Method (String, Object)

Sets the value of the specified option in the current scope.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

Syntax

'Declaration
Sub SetOptionValue ( _
    optionId As String, _
    value As Object _
)
void SetOptionValue(
    string optionId,
    Object value
)
void SetOptionValue(
    String^ optionId, 
    Object^ value
)
abstract SetOptionValue : 
        optionId:string * 
        value:Object -> unit
function SetOptionValue(
    optionId : String, 
    value : Object
)

Parameters

  • optionId
    Type: String

    The ID of the option.

  • value
    Type: Object

    The new value of the option.

Remarks

If the given option is not applicable in the current scope, it attempts to set the option in the global scope.

.NET Framework Security

See Also

Reference

IEditorOptions Interface

SetOptionValue Overload

Microsoft.VisualStudio.Text.Editor Namespace