src/Lists/MarkdownList.cs
/// <summary>
/// Returns the index of a given MarkdownBlock in our list.
/// </summary>
/// <param name="item">Item to look for</param>
/// <returns>Zero-based index or -1 if not found.</returns>
Returns the index of a given MarkdownBlock in our list.
Returns the index of a given MarkdownBlock in our list .
public int IndexOf(MarkdownBlock item)
        {
            for (int i = 0; i < Children.Count; i++)
            {
                int pos = Children[i].IndexOf(item);
                if (pos >= 0)
                    return pos + i;
            }
            return -1;
        }
public int IndexOf ( MarkdownBlock item ) { for ( int i = 0 ; i < Children . Count ; i ++ ) { int pos = Children [ i ] . IndexOf ( item ) ; if ( pos >= 0 ) return pos + i ; } return - 1 ; }
Returns the index of a given MarkdownBlock in our list.
Returns the index of a given MarkdownBlock in our list .
Zero-based index or -1 if not found.
Zero - based index or - 1 if not found .
item
MarkdownBlock
Item to look for
Item to look for