Exemple #1
0
 /// <summary>
 /// Gets the column with the given name.
 /// </summary>
 /// <param name="name">The name of the column.</param>
 /// <returns>The column with the given name.</returns>
 /// <exception cref="IndexOutOfRangeException">There is no column with the name <paramref name="name"/> in the collection.</exception>
 public FrameColumn this [string name] {
     get {
         int index = frame.GetColumnIndex(name);
         if (index < 0)
         {
             throw new IndexOutOfRangeException();
         }
         return(new FrameColumn(frame, index));
     }
 }
 /// <summary>
 /// Gets the column with the given name.
 /// </summary>
 /// <param name="name">The name of the column.</param>
 /// <returns>The column with the given name.</returns>
 public FrameColumn this [string name] {
     get {
         int index = frame.GetColumnIndex(name);
         return(new FrameColumn(frame, index));
     }
 }
Exemple #3
0
 /// <summary>
 /// Gets the value of the column with the given name.
 /// </summary>
 /// <param name="name">The name of the column.</param>
 /// <returns>The value.</returns>
 /// <exception cref="IndexOutOfRangeException">There is no column in the row with the given <paramref name="name"/>.</exception>
 public object this[string name] {
     get {
         int c = frame.GetColumnIndex(name);
         return(this[c]);
     }
 }