コード例 #1
0
 /// <summary>
 /// Returns index of item that starts at the given position if exists, -1 otherwise.
 /// </summary>
 /// <param name="position">Position in a text buffer</param>
 /// <returns>Item index or -1 if not found</returns>
 public int GetItemAtPosition(int position) => _collection.GetItemAtPosition(position);
コード例 #2
0
 /// <summary>
 /// Returns index of item that starts at the given position if exists, -1 otherwise.
 /// </summary>
 /// <param name="position">Position in a text buffer</param>
 /// <returns>Item index or -1 if not found</returns>
 public int GetItemAtPosition(int position)
 {
     return(_collection.GetItemAtPosition(position));
 }