SIL.FieldWorks.SharpViews.Hookups.GroupHookup.IndexOfChild C# (CSharp) Method

IndexOfChild() private method

Return the index of the one of your child hookups that contains the given selection, or -1 if not found.
private IndexOfChild ( InsertionPoint ip ) : int
ip SIL.FieldWorks.SharpViews.Selections.InsertionPoint
return int
		internal int IndexOfChild(InsertionPoint ip)
		{
			var child = ChildContaining(ip);
			if (child == null)
				return -1;
			return Children.IndexOf(child);
		}