예제 #1
0
 //note, this is fluent for chaining calls, return this
 public DocumentTemplateElement AddElement(DocumentTemplateElement aElement)
 {
     aElement.ParentElement = this;
     AddElementToChildCollection(aElement);
     return(this);
 }
예제 #2
0
 protected override void AddElementToChildCollection(DocumentTemplateElement aElement)
 {
     aElement.Template = this;
     base.AddElementToChildCollection(aElement);
 }
예제 #3
0
 protected virtual void AddElementToChildCollection(DocumentTemplateElement aElement)
 {
     this.ChildElements.Add(aElement);
 }