Document::Selection Property

 

Gets an object representing the current selection on the Document.

Namespace:   EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

property Object^ Selection {
	Object^ get();
}

Property Value

Type: System::Object^

An object representing the current selection on the Document.

Selection returns the current selection in the active window associated with this document (or the topmost window of the document if none is active).

This example works only in Visual Studio .NET 2003. For more information, see .a0b479e4-3c83-4407-986c-1d7353d6a406

No code example is currently available or this language may not be supported.
Return to top
Show: