示例#1
0
 /// <summary>
 /// Appends <paramref name="domElement"/> to the end of the list of child elements of
 /// this <see cref="DomElement"/>.
 /// </summary>
 /// <param name="domElement">Child element to be added.</param>
 public virtual void AppendChild(DomElement domElement)
 {
     ChildElements.Add(domElement);
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of <see cref="TableCell"/> class.
 /// </summary>
 /// <param name="parent"></param>
 /// <param name="attributes"></param>
 public TableCell(DomElement parent, BlockElementAttributes attributes) :
     base(parent, attributes)
 {
 }
 /// <summary>
 /// Initializes a new instance of <see cref="OrderedList"/> class.
 /// </summary>
 /// <param name="parent"></param>
 /// <param name="attributes"></param>
 public OrderedList(DomElement parent, BlockElementAttributes attributes) :
     base(parent, attributes)
 {
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of <see cref="DomElement"/> class with a
 /// reference to the parent element.
 /// </summary>
 /// <param name="parent">
 /// A reference to the <see cref="DomElement"/> which is the parent of this element.
 /// </param>
 protected DomElement(DomElement parent)
 {
     this.parent = parent;
 }
 /// <summary>
 /// Initializes a new instance of <see cref="InlineElement"/> class.
 /// </summary>
 /// <param name="parent"></param>
 /// <param name="innerText"></param>
 protected InlineElement(DomElement parent, String innerText) :
     this(parent, InlineElementAttributes.Empty, innerText)
 {
     this.innerText = innerText;
 }
 /// <summary>
 /// Initializes a new instance of <see cref="InlineElement"/> class.
 /// </summary>
 /// <param name="parent"></param>
 /// <param name="attributes"></param>
 /// <param name="innerText"></param>
 protected InlineElement(DomElement parent, InlineElementAttributes attributes, String innerText) :
     base(parent)
 {
     this.attributes = attributes;
     this.innerText  = innerText;
 }
示例#7
0
 /// <summary>
 /// Initializes a new instance of <see cref="Image"/> class.
 /// </summary>
 /// <param name="parent"></param>
 /// <param name="attributes"></param>
 /// <param name="url"></param>
 /// <param name="alternateText"></param>
 public Image(DomElement parent, BlockElementAttributes attributes, String url, String alternateText) :
     base(parent, attributes)
 {
     this.url           = url;
     this.alternateText = alternateText;
 }
 /// <summary>
 /// Initializes a new instance of <see cref="Paragraph"/> class.
 /// </summary>
 /// <param name="parent"></param>
 /// <param name="attributes"></param>
 public Paragraph(DomElement parent, BlockElementAttributes attributes) :
     base(parent, attributes)
 {
 }
 /// <summary>
 /// Initializes a new instance of <see cref="Hyperlink"/> class.
 /// </summary>
 /// <param name="parent"></param>
 /// <param name="innerText"></param>
 /// <param name="title"></param>
 /// <param name="url"></param>
 public Hyperlink(DomElement parent, String innerText, String title, String url) :
     base(parent, innerText)
 {
     this.title = title;
     this.url   = url;
 }
示例#10
0
 /// <summary>
 /// Initializes a new instance of <see cref="Blockquote"/> class.
 /// </summary>
 /// <param name="parent"></param>
 /// <param name="attributes"></param>
 public Blockquote(DomElement parent, BlockElementAttributes attributes) :
     base(parent, attributes)
 {
 }
示例#11
0
 /// <summary>
 /// Initializes a new instance of <see cref="Footnote"/> class.
 /// </summary>
 /// <param name="parent"></param>
 /// <param name="attributes"></param>
 /// <param name="number"></param>
 public Footnote(DomElement parent, BlockElementAttributes attributes, Int32 number) :
     base(parent, attributes)
 {
     this.number = number;
 }
示例#12
0
 /// <summary>
 /// Initializes a new instance of <see cref="List"/> class.
 /// </summary>
 /// <param name="parent"></param>
 /// <param name="attributes"></param>
 protected List(DomElement parent, BlockElementAttributes attributes) :
     base(parent, attributes)
 {
 }
示例#13
0
 /// <summary>
 /// Initializes a new instance of <see cref="TextBlock"/> class.
 /// </summary>
 /// <param name="parent"></param>
 /// <param name="attributes"></param>
 /// <param name="innerText"></param>
 /// <param name="formatting"></param>
 public TextBlock(DomElement parent, InlineElementAttributes attributes,
                  string innerText, TextBlockFormatting formatting) :
     base(parent, attributes, innerText)
 {
     this.formatting = formatting;
 }
示例#14
0
 /// <summary>
 /// Initializes a new instance of <see cref="Acronym"/> class.
 /// </summary>
 /// <param name="parent"></param>
 /// <param name="innerText"></param>
 /// <param name="title"></param>
 public Acronym(DomElement parent, string innerText, string title) :
     base(parent, innerText)
 {
     this.title = title;
 }
示例#15
0
 /// <summary>
 /// Initializes a new instance of <see cref="Heading"/> class/
 /// </summary>
 /// <param name="parent">The parent of this <see cref="Heading"/>.</param>
 /// <param name="attributes"><see cref="BlockElementAttributes"/> of this <see cref="Heading"/>.</param>
 /// <param name="level">The value which contains the absolute level of this <see cref="Heading"/>.</param>
 /// <param name="text">The text of this <see cref="Heading"/>.</param>
 public Heading(DomElement parent, BlockElementAttributes attributes, Int32 level, String text) :
     base(parent, attributes)
 {
     this.level = level;
     this.text  = text;
 }