/// <summary>
 /// Gets the index of the given entity in this object. This method ignores the concept of folder.
 /// </summary>
 /// <param name="entity">The entity for which to find the index.</param>
 /// <returns>The index of the given entity in this <see cref="EntityHierarchyElementViewModel"/>, or -1 if not found.</returns>
 public abstract int IndexOfEntity([NotNull] EntityViewModel entity);
Beispiel #2
0
 /// <inheritdoc/>
 public override int IndexOfEntity(EntityViewModel entity)
 {
     return(AssetSideEntity.Transform.Children.IndexOf(x => x.Entity.Id == entity.Id.ObjectId));
 }