VirtualPoint.CodeElement Property (vsCMElement)

 

Returns the code element at the VirtualPoint location.

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

CodeElement this[
	vsCMElement Scope
] { get; }

Parameters

Scope
Type: EnvDTE.vsCMElement

Required. A vsCMElement constant indicating the code element with the specified kind that contains the editor location.

Property Value

Type: EnvDTE.CodeElement

A CodeElement object.

If the specified code element type is not at the VirtualPoint location, then the CodeElement object returns Nothing. The CodeElement object is a shortcut for TextPoint.Parent.Parent.ProjectItem.CodeModel.CodeElementFromPoint(TextPoint, <scope>)

Return to top
Show: