I have a c++ code whereinI have declared a enum as follows

enum

TextDocument textDoc = (TextDocument)Re.ReDte.ActiveDocument.Object("TextDocument");

EditPoint editPoint = textDoc.StartPoint.CreateEditPoint();

editPoint.MoveToLineAndOffset(lineNumber, 1);

List<string> enumElements = new List<string>();

CodeElement element = editPoint.get_CodeElement(vsCMElement.vsCMElementEnum);
}


editPoint.get_CodeElement(vsCMElement.vsCMElementEnum) returns null.

Is there an issue in my code? because of which get_codeelement returns NULL?
weekday {monday, tuesday, wednesday, thursday, friday, saturday, sunday};


The following is the code written in .NET extensible packagethat tries to interpret the above code.

{

  • Edited byBala Prabhu Thursday, July 23, 2009 8:42 AMchanged formating
  •