TextPoint::CodeElement Property (vsCMElement)
Visual Studio 2015
Returns the code element at the TextPoint location.
Assembly: EnvDTE (in EnvDTE.dll)
property CodeElement^ default[ vsCMElement Scope ] { CodeElement^ get(vsCMElement Scope); }
Parameters
- Scope
-
Type:
EnvDTE::vsCMElement
Required. A vsCMElement constant indicating the code element with the specified kind that contains the editor location.
If the specified code element type is not at the TextPoint location, then CodeElement returns Nothing. CodeElement is a shortcut for TextPoint.Parent.Parent.ProjectItem.CodeModel.CodeElementFromPoint(TextPoint, <scope>).
Show: