Example #1
0
 public static string GetText(this CodeProperty2 prop, vsCMPart part = vsCMPart.vsCMPartWholeWithAttributes)
 {
     try {
         var p = prop.GetStartPoint(part);
         if (p == null)
         {
             return("");
         }
         return(p.CreateEditPoint().GetText(prop.GetEndPoint(part)));
     }
     catch (Exception ex) {
         if (ex is COMException || ex is NotImplementedException)
         {
             return("");
         }
         throw;
     }
 }
Example #2
0
 public static EnvDTE.TextPoint GetAttributeStartPoint(this CodeProperty2 prop)
 {
     return(prop.GetStartPoint());
 }
 public static TextPoint GetAttributeStartPoint(this CodeProperty2 prop)
 {
     return(prop.GetStartPoint(vsCMPart.vsCMPartWholeWithAttributes));
 }