/// <summary> /// Indicates whether the given property is supported by at least one of the elements in the list. /// </summary> /// <param name="prop">property to be checked</param> /// <returns>true if prop is supported by at least one element in the list, false otherwise</returns> public bool PropertySupportedBySome(DrawableContainer.Property prop) { bool ret = false; foreach (DrawableContainer dc in this) { ret |= dc.PropertySupported(prop); } return(ret); }
/// <summary> /// Indicates whether the given property is supported by all elements in the list. /// </summary> /// <param name="prop">property to be checked</param> /// <returns>true if prop is supported by all elements in the list</returns> public bool PropertySupported(DrawableContainer.Property prop) { foreach (DrawableContainer dc in this) { if (!dc.PropertySupported(prop)) { return(false); } } return(true); }