Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the code element at the VirtualPoint ___location.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
ReadOnly Property CodeElement ( _
Scope As vsCMElement _
) As CodeElement
CodeElement this[
vsCMElement Scope
] { get; }
property CodeElement^ CodeElement[[InAttribute] vsCMElement Scope] {
CodeElement^ get ([InAttribute] vsCMElement Scope);
}
abstract CodeElement :
Scope:vsCMElement -> CodeElement with get
JScript does not support indexed properties.
Parameters
Scope
Type: EnvDTE.vsCMElementRequired. A vsCMElement constant indicating the code element with the specified kind that contains the editor ___location.
Property Value
Type: EnvDTE.CodeElement
A CodeElement object.
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>)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Other Resources
How to: Compile and Run the Automation Object Model Code Examples