PrependText() public method

Adds some text to the first of the text of this Element>
public PrependText ( string text ) : void
text string
return void
コード例 #1
0
 private void PrependBreadcrumb(Element span, Element breadcrumb)
 {
     if (span.HasChildren)
     {
         span.PrependText(" ");
     }
     span.PrependText(" >");
     span.PrependChild(breadcrumb);
 }