示例#1
0
 /// <summary>
 /// Raises the <see cref="E:RemovingAttribute" /> event.
 /// </summary>
 /// <param name="e">The <see cref="RemovingAttributeEventArgs"/> instance containing the event data.</param>
 protected virtual void OnRemovingAttribute(RemovingAttributeEventArgs e)
 {
     if (RemovingAttribute != null)
     {
         RemovingAttribute(this, e);
     }
 }
示例#2
0
        private void RemoveAttribute(IDomObject tag, KeyValuePair <string, string> attribute)
        {
            var e = new RemovingAttributeEventArgs {
                Attribute = attribute
            };

            OnRemovingAttribute(e);
            if (!e.Cancel)
            {
                tag.RemoveAttribute(attribute.Key);
            }
        }
示例#3
0
 private void RemoveAttribute(IDomObject tag, KeyValuePair<string, string> attribute)
 {
     var e = new RemovingAttributeEventArgs { Attribute = attribute };
     OnRemovingAttribute(e);
     if (!e.Cancel) tag.RemoveAttribute(attribute.Key);
 }
示例#4
0
 /// <summary>
 /// Raises the <see cref="E:RemovingAttribute" /> event.
 /// </summary>
 /// <param name="e">The <see cref="RemovingAttributeEventArgs"/> instance containing the event data.</param>
 protected virtual void OnRemovingAttribute(RemovingAttributeEventArgs e)
 {
     if (RemovingAttribute != null) RemovingAttribute(this, e);
 }