예제 #1
0
 public TableControlBase()
     : base(HtmlTag.Table)
 {
     HeaderRows = new HtmlControlCollection <THeaderRowType>();
     FooterRows = new HtmlControlCollection <THeaderRowType>();
     RegisterChildrenCollection(HeaderRows, FooterRows);
 }
예제 #2
0
 internal void _AddGuestControl(HtmlObject control, bool beforeChildren)
 {
     Assert.NullArgument(control, "control");
     if (beforeChildren)
     {
         _beforeChildrenGuestControls = _beforeChildrenGuestControls ?? new HtmlControlCollection <HtmlObject>();
         _beforeChildrenGuestControls.Add(control);
     }
     else
     {
         _afterChildrenGuestControls = _afterChildrenGuestControls ?? new HtmlControlCollection <HtmlObject>();
         _afterChildrenGuestControls.Add(control);
     }
 }
예제 #3
0
 internal void _AddGuestControl(HtmlObject control, bool beforeChildren)
 {
     Assert.NullArgument(control, "control");
     if (beforeChildren)
     {
         _beforeChildrenGuestControls = _beforeChildrenGuestControls ?? new HtmlControlCollection<HtmlObject>();
         _beforeChildrenGuestControls.Add(control);
     }
     else
     {
         _afterChildrenGuestControls = _afterChildrenGuestControls ?? new HtmlControlCollection<HtmlObject>();
         _afterChildrenGuestControls.Add(control);
     }
 }
예제 #4
0
 /// <summary>
 /// Initialize the HtmlControlBase and its fields.
 /// </summary>
 private HtmlControlBase()
 {
     _wrapper = new HtmlElementWrapperBag();
     _controls = new HtmlControlCollection(this);
 }