Udostępnij za pośrednictwem


TextViewHostOptionExtensions.IsInContrastMode(IEditorOptions) Method

Definition

Determines whether the editor is in either "Extra Contrast" or "High Contrast" modes.

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsInContrastMode(Microsoft::VisualStudio::Text::Editor::IEditorOptions ^ options);
public static bool IsInContrastMode (this Microsoft.VisualStudio.Text.Editor.IEditorOptions options);
static member IsInContrastMode : Microsoft.VisualStudio.Text.Editor.IEditorOptions -> bool
<Extension()>
Public Function IsInContrastMode (options As IEditorOptions) As Boolean

Parameters

options
IEditorOptions

The set of editor options.

Returns

true if the editor is in either "Extra Contrast" or "High Contrast" modes, otherwise false.

Applies to