public int CompareTo(object obj) { IDrawDesignControl dc = obj as IDrawDesignControl; if (dc != null) { return(ZOrder.CompareTo(dc.ZOrder)); } throw new ArgumentException("object is not a IDrawDesignControl"); }
// Support sorting based on z-order. This makes it easy // to paint groups of Shape controls in the right order. public int CompareTo(object shape) { return(ZOrder.CompareTo(((Shape)shape).ZOrder)); }
public int CompareTo(LLShape other) { return(ZOrder.CompareTo(other.ZOrder)); }