Share via


ITextSelection.IsActive Property

Whether or not the selection is active.

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

Syntax

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

Property Value

Type: System.Boolean
true if the selection is active, otherwise false.

Remarks

If ActivationTracksFocus is true, this property is automatically updated whenever the ITextView gains or loses aggregate focus. You can still override this property to update while ActivationTracksFocus is false, but the value will change whenever focus changes.

.NET Framework Security

See Also

Reference

ITextSelection Interface

Microsoft.VisualStudio.Text.Editor Namespace