/// <devdoc> /// <para> /// Removes an attribute from the <see langword='AttributeCollection'/>. /// </para> /// </devdoc> public void Remove(string key) { if (_styleColl != null && StringUtil.EqualsIgnoreCase(key, "style")) { _styleColl.Clear(); } else { _bag.Remove(key); } }
/// <include file='doc\AttributeCollection.uex' path='docs/doc[@for="AttributeCollection.Remove"]/*' /> /// <devdoc> /// <para> /// Removes an attribute from the <see langword='AttributeCollection'/>. /// </para> /// </devdoc> public void Remove(string key) { if (_styleColl != null && String.Compare(key, "style", true, CultureInfo.InvariantCulture) == 0) { _styleColl.Clear(); } else { _bag.Remove(key); } }