FileCodeModel Interface

Allows access to programmatic constructs in a source file.

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

[GuidAttribute("ED1A3F99-4477-11D3-89BF-00C04F688DDE")]
public interface FileCodeModel

The FileCodeModel type exposes the following members.

  NameDescription
Public propertyCodeElementsGets a collection of code elements.
Public propertyDTEGets the top-level extensibility object.
Public propertyLanguageGets the programming language used to author the code.
Public propertyParentGets the immediate parent object of a FileCodeModel object.
Top

  NameDescription
Public methodAddAttributeCreates a new attribute code construct and inserts the code in the correct location.
Public methodAddClassCreates a new class code construct and inserts the code in the correct location.
Public methodAddDelegateCreates a new delegate code construct and inserts the code in the correct location.
Public methodAddEnumCreates a new enumeration code construct and inserts the code in the correct location.
Public methodAddFunctionCreates a new function code construct and inserts the code in the correct location.
Public methodAddInterfaceCreates a new interface code construct and inserts the code in the correct location.
Public methodAddNamespaceCreates a new namespace code construct and inserts the code in the correct location.
Public methodAddStructCreates a new structure code construct and inserts the code in the correct location.
Public methodAddVariableCreates a new variable code construct and inserts the code in the correct location.
Public methodCodeElementFromPointReturns a code element at a specific location in a source file.
Public methodRemoveRemoves the specified code element from the source file.
Top

The FileCodeModel object is the root of the code model for a project item or file.

Show: