SIL.FieldWorks.Common.Framework.DetailControls.Slice.Slice.ExpandSubItem C# (CSharp) Méthode

ExpandSubItem() public méthode

Find a slice nested below this one whose object is hvo and expand it if it is collapsed.
public ExpandSubItem ( int hvo ) : Slice
hvo int
Résultat Slice
		public Slice ExpandSubItem(int hvo)
		{
			CheckDisposed();

			int cslice = ContainingDataTree.Slices.Count;
			for (int islice = IndexInContainer + 1; islice < cslice; ++islice)
			{
				var slice = ContainingDataTree.Slices[islice];
				if (slice.Object.Hvo == hvo)
				{
					if (slice.Expansion == DataTree.TreeItemState.ktisCollapsed)
						slice.TreeNode.ToggleExpansion(islice);
					return slice;
				}
				// Stop if we get past the children of the current object.
				if (slice.Indent <= Indent)
					break;
			}
			return null;
		}