Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

vsCMAddPosition Enumeration 

Determines the position of the new code element in relation to the parent object.

Namespace: Microsoft.VisualStudio.VCCodeModel
Assembly: Microsoft.VisualStudio.VCCodeModel (in microsoft.visualstudio.vccodemodel.dll)

public enum vsCMAddPosition
public enum vsCMAddPosition
public enum vsCMAddPosition

 Member nameDescription
vsCMAddPositionDefaultThe default placement determined by the library (same as vsCMAddPositionEnd). 
vsCMAddPositionEndItem inserted at end of parent object. 
vsCMAddPositionInvalidEnumeration is uninitialized. 
vsCMAddPositionStartItem inserted at beginning of parent object. 

The position is determined by the item being inserted and the parent object. For example, if a variable declaration item is being inserted into a class object (specifying vsCMAddPositionStart), the declaration is placed directly after the opening brace of the class declaration.

NoteNote

The vsCMAddPositionInvalid constant indicates that the enumeration has not been previously initialized by the programmer. The Visual C++ code model library does not use this value.

Show:
© 2015 Microsoft