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)

property bool IsActive {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true if the selection is active, otherwise false.

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.

Return to top
Show: