共用方式為


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 命名空間