EditPoint2::CodeElement Property (vsCMElement)
Visual Studio 2015
Gets the code element at the EditPoint location.
Assembly: EnvDTE80 (in EnvDTE80.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.
Implements
EditPoint::CodeElement[vsCMElement]If the specified code element type is not at the EditPoint location, then CodeElement returns Nothing. CodeElement is a shortcut for TextPoint.Parent.Parent.ProjectItem.CodeModel.CodeElementFromPoint(TextPoint, <scope>)
Show: