FileCodeModel::CodeElementFromPoint Method (TextPoint^, vsCMElement)
Visual Studio 2015
Returns a code element at a specific location in a source file.
Assembly: EnvDTE (in EnvDTE.dll)
Parameters
- Point
-
Type:
EnvDTE::TextPoint^
Required. A TextPoint object representing the editor location for which you want a code element.
- Scope
-
Type:
EnvDTE::vsCMElement
Required. A vsCMElement value representing the code element of the specified type that contains the editor location.
CodeElementFromPoint returns the code element associated with the TextPoint based on the specified scope or granularity of containment. If no code element of the specified type contains the editor location, then this method fails.
Show: