共用方式為


TextViewHostOptionExtensions.IsOutliningMarginEnabled(IEditorOptions) Method

Definition

Determines whether the Outlining margin is enabled with the specified set of editor options.

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

Parameters

options
IEditorOptions

The set of editor options.

Returns

true if the Outlining margin is enabled, otherwise false.

Remarks

Disabling the margin does NOT turn off Outlining (it just hides the margin

Applies to