다음을 통해 공유


IEditorOptions.GetOptionValue<T> Method (String)

Gets the value of the option identified by the specified option ID.

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

Syntax

'Declaration
Function GetOptionValue(Of T) ( _
    optionId As String _
) As T
T GetOptionValue<T>(
    string optionId
)
generic<typename T>
T GetOptionValue(
    String^ optionId
)
abstract GetOptionValue : 
        optionId:string -> 'T 
JScript does not support generic types or methods.

Type Parameters

  • T
    The type of the value.

Parameters

  • optionId
    Type: String

    The ID of the option.

Return Value

Type: T
The current value of the option.

.NET Framework Security

See Also

Reference

IEditorOptions Interface

GetOptionValue Overload

Microsoft.VisualStudio.Text.Editor Namespace