Partager via


FileCodeModel Interface

Definition

Allows access to programmatic constructs in a source file.

public interface class FileCodeModel
public interface class FileCodeModel
__interface FileCodeModel
[System.Runtime.InteropServices.Guid("ED1A3F99-4477-11D3-89BF-00C04F688DDE")]
[System.Runtime.InteropServices.TypeLibType(4160)]
public interface FileCodeModel
[System.Runtime.InteropServices.Guid("ED1A3F99-4477-11D3-89BF-00C04F688DDE")]
public interface FileCodeModel
[<System.Runtime.InteropServices.Guid("ED1A3F99-4477-11D3-89BF-00C04F688DDE")>]
[<System.Runtime.InteropServices.TypeLibType(4160)>]
type FileCodeModel = interface
[<System.Runtime.InteropServices.Guid("ED1A3F99-4477-11D3-89BF-00C04F688DDE")>]
type FileCodeModel = interface
Public Interface FileCodeModel
Derived
Attributes

Remarks

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

Properties

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.

Methods

AddAttribute(String, String, Object)

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

AddClass(String, Object, Object, Object, vsCMAccess)

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

AddDelegate(String, Object, Object, vsCMAccess)

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

AddEnum(String, Object, Object, vsCMAccess)

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

AddFunction(String, vsCMFunction, Object, Object, vsCMAccess)

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

AddInterface(String, Object, Object, vsCMAccess)

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

AddNamespace(String, Object)

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

AddStruct(String, Object, Object, Object, vsCMAccess)

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

AddVariable(String, Object, Object, vsCMAccess)

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

CodeElementFromPoint(TextPoint, vsCMElement)

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

Remove(Object)

Removes the specified code element from the source file.

Applies to