This topic has not yet been rated - Rate this topic

FileCodeModel2 Interface

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

The FileCodeModel2 type exposes the following members.

  NameDescription
Public propertyCodeElementsGets a collection of code elements.
Public propertyDTEGets the top-level extensibility object.
Public propertyIsBatchOpenGets a value indicating whether a batch code model updates is currently open.
Public propertyLanguageGets the programming language used to author the code.
Public propertyParentGets the immediate parent object of a FileCodeModel object.
Public propertyParseStatusUsed when the code model is built to determine whether the parse operation completed or encountered an error.
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 methodAddImportCreates a new code import statement 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 methodBeginBatchSuspends the occurrence of edit events until all changes to the code model have been applied.
Public methodCodeElementFromPointReturns a code element at a specific location in a source file.
Public methodElementFromIDUsed to receive specific CodeElement.
Public methodEndBatchEnables the suspended events to occur after the batch edit of the code model.
Public methodRemoveRemoves the specified code element from the source file.
Public methodSynchronizeEnsures that all current code model events have been raised and the model has finished being generated.
Top

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.