示例#1
0
 /// <summary>
 /// Removes an attribute of the node.
 /// </summary>
 /// <param name="attr">An instance of <see cref="HtmlAttribute"/> class.</param>
 /// <returns><see langword="true"/> if removes successfully; otherwise, <see langword="false"/>.</returns>
 public bool RemoveAttribute(HtmlAttribute attr) => attrs.Remove(attr);
示例#2
0
 /// <summary>
 /// Adds an attribute to the node.
 /// </summary>
 /// <param name="attr">An instance of <see cref="HtmlAttribute"/> class.</param>
 public void AddAttribute(HtmlAttribute attr) => attrs.Add(attr);