EditPoint::CodeElement Property (vsCMElement)

 

Gets the code element at the EditPoint location.

Namespace:   EnvDTE
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.

Property Value

Type: EnvDTE::CodeElement^

A CodeElement object.

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

No code example is currently available or this language may not be supported.
Return to top
Show: