public static int BottomDepth(this IArea area) { return(area.DepthWhile(child => child.Bottom == area.Bottom)); }
public static int RightDepth(this IArea area) { return(area.DepthWhile(child => child.Right == area.Right)); }
public static int TopDepth(this IArea area) { return(area.DepthWhile(child => child.Top == area.Top)); }
public static int LeftDepth(this IArea area) { return(area.DepthWhile(child => child.Left == area.Left)); }