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: StringThe ID of the option.
value
Type: ObjectThe 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.