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.
Allows access to programmatic constructs in a source file.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
<GuidAttribute("ED1A3F99-4477-11D3-89BF-00C04F688DDE")> _
Public Interface FileCodeModel
[GuidAttribute("ED1A3F99-4477-11D3-89BF-00C04F688DDE")]
public interface FileCodeModel
[GuidAttribute(L"ED1A3F99-4477-11D3-89BF-00C04F688DDE")]
public interface class FileCodeModel
[<GuidAttribute("ED1A3F99-4477-11D3-89BF-00C04F688DDE")>]
type FileCodeModel = interface end
public interface FileCodeModel
The FileCodeModel type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() |
CodeElements | Gets a collection of code elements. |
![]() |
DTE | Gets the top-level extensibility object. |
![]() |
Language | Gets the programming language used to author the code. |
![]() |
Parent | Gets the immediate parent object of a FileCodeModel object. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
AddAttribute | Creates a new attribute code construct and inserts the code in the correct location. |
![]() |
AddClass | Creates a new class code construct and inserts the code in the correct location. |
![]() |
AddDelegate | Creates a new delegate code construct and inserts the code in the correct location. |
![]() |
AddEnum | Creates a new enumeration code construct and inserts the code in the correct location. |
![]() |
AddFunction | Creates a new function code construct and inserts the code in the correct location. |
![]() |
AddInterface | Creates a new interface code construct and inserts the code in the correct location. |
![]() |
AddNamespace | Creates a new namespace code construct and inserts the code in the correct location. |
![]() |
AddStruct | Creates a new structure code construct and inserts the code in the correct location. |
![]() |
AddVariable | Creates a new variable code construct and inserts the code in the correct location. |
![]() |
CodeElementFromPoint | Returns a code element at a specific location in a source file. |
![]() |
Remove | Removes the specified code element from the source file. |
Top
Remarks
The FileCodeModel object is the root of the code model for a project item or file.