VirtualPoint.CodeElement[vsCMElement] VirtualPoint.CodeElement[vsCMElement] VirtualPoint.CodeElement[vsCMElement] Property

Definition

Returns the code element at the VirtualPoint location.

[System.Runtime.InteropServices.DispId(51)]
[get: System.Runtime.InteropServices.DispId(51)]
public EnvDTE.CodeElement CodeElement[EnvDTE.vsCMElement Scope] { get; }
member this.CodeElement(EnvDTE.vsCMElement) : EnvDTE.CodeElement
Public ReadOnly Property CodeElement(Scope As vsCMElement) As CodeElement
Parameters
Scope
vsCMElement vsCMElement vsCMElement

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

Property Value

Remarks

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>)

Applies to