This documentation is archived and is not being maintained.

CodeElement Object

Visual Studio .NET 2003

Represents a code element or construct in a source file.







[Visual Basic .NET]
Public Interface CodeElement
    Inherits IDispatch
[Visual Basic 6]
Class CodeElement
interface CodeElement : IDispatch
public interface CodeElement : IDispatch
[JScript .NET]
public interface CodeElement extends IDispatch


A code element can be any fragment of code, but generally, there is a CodeElement object for each definition or declarative syntax in a language. This means that for most top-level definitions or declarations in a file, or for any syntactic form in a class definition, and so forth, there is a corresponding CodeElement object.


Namespace: EnvDTE

File: dte.tlb

See Also

CodeElement Object Properties, Methods, and Events | CodeElement Property (General Extensibility) | CodeElements Collection