FileCodeModel2 Interface

 

Allows access to programmatic constructs in a source file.

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

[GuidAttribute("A65964DF-3A07-45EB-882A-DD04602016B9")]
public interface FileCodeModel2 : FileCodeModel

NameDescription
System_CAPS_pubpropertyCodeElements

Gets a collection of code elements.

System_CAPS_pubpropertyDTE

Gets the top-level extensibility object.

System_CAPS_pubpropertyIsBatchOpen

Gets a value indicating whether a batch code model updates is currently open.

System_CAPS_pubpropertyLanguage

Gets the programming language used to author the code.

System_CAPS_pubpropertyParent

Gets the immediate parent object of a FileCodeModel object.

System_CAPS_pubpropertyParseStatus

Used when the code model is built to determine whether the parse operation completed or encountered an error.

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_pubmethodAddImport(String, Object, String)

Creates a new code import statement 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_pubmethodBeginBatch()

Suspends the occurrence of edit events until all changes to the code model have been applied.

System_CAPS_pubmethodCodeElementFromPoint(TextPoint, vsCMElement)

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

System_CAPS_pubmethodElementFromID(String)

Used to receive specific CodeElement.

System_CAPS_pubmethodEndBatch()

Enables the suspended events to occur after the batch edit of the code model.

System_CAPS_pubmethodRemove(Object)

Removes the specified code element from the source file.

System_CAPS_pubmethodSynchronize()

Ensures that all current code model events have been raised and the model has finished being generated.

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

Return to top
Show: