コード例 #1
0
ファイル: Element.cs プロジェクト: modo-lv/Forkdown
 /// <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
ファイル: Element.cs プロジェクト: modo-lv/Forkdown
 protected Element(IMarkdownObject mdo) : this()
 {
     this.Attributes = new ElementAttributes(mdo.GetAttributes(), this);
 }