示例#1
0
 public virtual TableColumn this[string text]
 {
     get
     {
         TableColumn column = Find(obj => obj.Name.Equals(text));
         if (column == null)
         {
             throw new UIItemSearchException(
                       string.Format("Cannot find column with text {0}. Found columns: {1}", text,
                                     string.Join(",", StringCollection.FromToString(this).ToArray())));
         }
         return(column);
     }
 }