AODL.Document.Content.Tables.Row.GetRowIndex C# (CSharp) Method

GetRowIndex() private method

Gets the index of the row.
private GetRowIndex ( ) : int
return int
		private int GetRowIndex()
		{
			for(int i=0; i < this.Table.Rows.Count; i++)
			{
				if (this.Table.Rows[i] == this)
					return i;
			}
			//Maybe this row isn't already added.
			//e.g. this is a new row which will be added
			//to the end of the collection
			// TODO - there is no "Maybe" :) Throw exception if not found
			return this.Table.Rows.Count;
		}