Udostępnij za pośrednictwem


IEditorOptions.GetOptionValue Method

Definition

Overloads

GetOptionValue(String)

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

GetOptionValue<T>(EditorOptionKey<T>)

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

GetOptionValue<T>(String)

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

GetOptionValue(String)

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

public:
 System::Object ^ GetOptionValue(System::String ^ optionId);
public:
 Platform::Object ^ GetOptionValue(Platform::String ^ optionId);
winrt::Windows::Foundation::IInspectable GetOptionValue(std::wstring const & optionId);
public object GetOptionValue (string optionId);
abstract member GetOptionValue : string -> obj
Public Function GetOptionValue (optionId As String) As Object

Parameters

optionId
String

The ID of the option.

Returns

The current value of the option, as an object. The caller is responsible for casting the object to the correct type.

Applies to

GetOptionValue<T>(EditorOptionKey<T>)

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

public:
generic <typename T>
 T GetOptionValue(Microsoft::VisualStudio::Text::Editor::EditorOptionKey<T> key);
template <typename T>
 T GetOptionValue(Microsoft::VisualStudio::Text::Editor::EditorOptionKey<T> key);
public T GetOptionValue<T> (Microsoft.VisualStudio.Text.Editor.EditorOptionKey<T> key);
abstract member GetOptionValue : Microsoft.VisualStudio.Text.Editor.EditorOptionKey<'T> -> 'T
Public Function GetOptionValue(Of T) (key As EditorOptionKey(Of T)) As T

Type Parameters

T

The type of the value.

Parameters

key
EditorOptionKey<T>

The key of the option.

Returns

T

The current value of the option.

Applies to

GetOptionValue<T>(String)

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

public:
generic <typename T>
 T GetOptionValue(System::String ^ optionId);
public:
generic <typename T>
 T GetOptionValue(Platform::String ^ optionId);
template <typename T>
 T GetOptionValue(std::wstring const & optionId);
public T GetOptionValue<T> (string optionId);
abstract member GetOptionValue : string -> 'T
Public Function GetOptionValue(Of T) (optionId As String) As T

Type Parameters

T

The type of the value.

Parameters

optionId
String

The ID of the option.

Returns

T

The current value of the option.

Applies to