WpfViewOptionExtensions.IsHighlightCurrentLineEnabled 方法

确定是否启用用于突出显示当前行的选项。

命名空间:  Microsoft.VisualStudio.Text.Editor.OptionsExtensionMethods
程序集:  Microsoft.VisualStudio.Text.UI.Wpf(在 Microsoft.VisualStudio.Text.UI.Wpf.dll 中)

语法

声明
<ExtensionAttribute> _
Public Shared Function IsHighlightCurrentLineEnabled ( _
    options As IEditorOptions _
) As Boolean
public static bool IsHighlightCurrentLineEnabled(
    this IEditorOptions options
)
[ExtensionAttribute]
public:
static bool IsHighlightCurrentLineEnabled(
    IEditorOptions^ options
)
static member IsHighlightCurrentLineEnabled : 
        options:IEditorOptions -> bool
public static function IsHighlightCurrentLineEnabled(
    options : IEditorOptions
) : boolean

参数

返回值

类型:Boolean
true ,如果突出显示当前行选项启用了,否则 false。

使用说明

在 Visual Basic 和 C# 中,可以在 IEditorOptions 类型的任何对象上将此方法作为实例方法来调用。当使用实例方法语法调用此方法时,请省略第一个参数。有关详细信息,请参阅扩展方法 (Visual Basic)扩展方法(C# 编程指南)

.NET Framework 安全性

请参阅

参考

WpfViewOptionExtensions 类

Microsoft.VisualStudio.Text.Editor.OptionsExtensionMethods 命名空间