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 class FileCodeModel

NameDescription
System_CAPS_pubpropertyCodeElements

Gets a collection of code elements.

System_CAPS_pubpropertyDTE

Gets the top-level extensibility object.

System_CAPS_pubpropertyLanguage

Gets the programming language used to author the code.

System_CAPS_pubpropertyParent

Gets the immediate parent object of a FileCodeModel object.

NameDescription
System_CAPS_pubmethodAddAttribute(String^, String^, Object^)

Creates a new attribute code construct and inserts the code in the correct location.

System_CAPS_pubmethodAddClass(String^, Object^, Object^, Object^, vsCMAccess)

Creates a new class code construct and inserts the code in the correct location.

System_CAPS_pubmethodAddDelegate(String^, Object^, Object^, vsCMAccess)

Creates a new delegate code construct and inserts the code in the correct location.

System_CAPS_pubmethodAddEnum(String^, Object^, Object^, vsCMAccess)

Creates a new enumeration code construct and inserts the code in the correct location.

System_CAPS_pubmethodAddFunction(String^, vsCMFunction, Object^, Object^, vsCMAccess)

Creates a new function code construct and inserts the code in the correct location.

System_CAPS_pubmethodAddInterface(String^, Object^, Object^, vsCMAccess)

Creates a new interface code construct and inserts the code in the correct location.

System_CAPS_pubmethodAddNamespace(String^, Object^)

Creates a new namespace code construct and inserts the code in the correct location.

System_CAPS_pubmethodAddStruct(String^, Object^, Object^, Object^, vsCMAccess)

Creates a new structure code construct and inserts the code in the correct location.

System_CAPS_pubmethodAddVariable(String^, Object^, Object^, vsCMAccess)

Creates a new variable code construct and inserts the code in the correct location.

System_CAPS_pubmethodCodeElementFromPoint(TextPoint^, vsCMElement)

Returns a code element at a specific location in a source file.

System_CAPS_pubmethodRemove(Object^)

Removes the specified code element from the source file.

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

Return to top
Show: