Exemplo n.º 1
0
 /**
  * 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));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds an attribute to link
 /// </summary>
 /// <param name="mapAttribute">Attribute to add</param>
 public void AddAttribute(MapAttribute mapAttribute)
 {
     Attributes.Add(mapAttribute);
 }
Exemplo n.º 3
0
 /**
  * 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);
 }
Exemplo n.º 4
0
 /// <summary>
 /// removes attribute to the attribute list.
 /// </summary>
 /// <param name="attr">The attribute to remove</param>
 public void RemoveAttribute(MapAttribute attr)
 {
     attributes.Remove(attr);
 }