示例#1
0
 /// <summary>
 /// Move HTML attributes and Forkdown settings from this element to another.
 /// </summary>
 /// <param name="element">Target element.</param>
 public virtual void MoveAttributesTo(Element element)
 {
     element.Attributes  = this.Attributes;
     element.ExplicitIds = this.ExplicitIds;
     this.Attributes     = new ElementAttributes();
     this.ExplicitIds    = Nil.LStr;
 }
示例#2
0
 protected Element(IMarkdownObject mdo) : this()
 {
     this.Attributes = new ElementAttributes(mdo.GetAttributes(), this);
 }