public GDStyleDefinition AddStyle(GDStyleDefinition node) { SafeList(); p_list.Add(node); return(node); }
public void Remove(GDStyleDefinition node) { if (p_list == null) { return; } p_list.Remove(node); }
public GDStyleDefinition this[string styleName] { get { SafeList(); foreach (GDStyleDefinition sd in p_list) { if (sd.Name.Equals(styleName)) { return(sd); } } GDStyleDefinition sdn = new GDStyleDefinition(); sdn.Name = styleName; AddStyle(sdn); return(sdn); } }