This topic has not yet been rated - Rate this topic

VirtualPoint.CodeElement Property

Returns the code element at the VirtualPoint location.

Namespace: EnvDTE
Assembly: EnvDTE (in envdte.dll)

CodeElement CodeElement [
	[InAttribute] vsCMElement Scope
] { get; }
/** @property */
CodeElement get_CodeElement (/** @attribute InAttribute() */ vsCMElement Scope)

JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

Property Value

A CodeElement object.

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

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.