/** * Convenience method to remove the first occurence of the MapAttribute from the attributes list. Null parameters are not allowed. * If the list is null, just return false. * * * @return True if removed. False otherwise * @param attribute The MapAttribute to remove from the attributes list * @throws ArgumentNullException If attribute is null */ public bool RemoveAttribute(MapAttribute attribute) { return(attributes.Remove(attribute)); }
/// <summary> /// Adds an attribute to link /// </summary> /// <param name="mapAttribute">Attribute to add</param> public void AddAttribute(MapAttribute mapAttribute) { Attributes.Add(mapAttribute); }
/** * Convenience method to add a MapAttribute to the attributes list. Null parameters are not allowed. * If the list is null, just create a new instance and add to it. * * * @param attribute The MapAttribute to add to the attributes list * @throws ArgumentNullException If attribute is null */ public void AddAttribute(MapAttribute attribute) { attributes.Add(attribute); }
/// <summary> /// removes attribute to the attribute list. /// </summary> /// <param name="attr">The attribute to remove</param> public void RemoveAttribute(MapAttribute attr) { attributes.Remove(attr); }