IntraTextAdornment.SetIsSelected 方法

设置指定 UIElement 的 IsSelected 值。

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

语法

声明
Public Shared Sub SetIsSelected ( _
    element As UIElement, _
    isSelected As Boolean _
)
public static void SetIsSelected(
    UIElement element,
    bool isSelected
)
public:
static void SetIsSelected(
    UIElement^ element, 
    bool isSelected
)
static member SetIsSelected : 
        element:UIElement * 
        isSelected:bool -> unit
public static function SetIsSelected(
    element : UIElement, 
    isSelected : boolean
)

参数

  • element
    类型:UIElement

    元素。

  • isSelected
    类型:Boolean

    IsSelected 值。

.NET Framework 安全性

请参阅

参考

IntraTextAdornment 类

Microsoft.VisualStudio.Text.Editor 命名空间