Partager via


ITextSelection.ActivationTracksFocus Property

Determines whether IsActive should track when the ITextView gains and loses aggregate focus. The default is true.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaration
Property ActivationTracksFocus As Boolean
bool ActivationTracksFocus { get; set; }
property bool ActivationTracksFocus {
    bool get ();
    void set (bool value);
}
abstract ActivationTracksFocus : bool with get, set
function get ActivationTracksFocus () : boolean 
function set ActivationTracksFocus (value : boolean)

Property Value

Type: Boolean
true if the activation tracks the aggregate focus, otherwise false.

Remarks

As long as the value of this property is true, the value of IsActive tracks HasAggregateFocus. If the value is false and then changes to true, the value of IsActive is immediately updated.

.NET Framework Security

See Also

Reference

ITextSelection Interface

Microsoft.VisualStudio.Text.Editor Namespace