public TableControlBase() : base(HtmlTag.Table) { HeaderRows = new HtmlControlCollection <THeaderRowType>(); FooterRows = new HtmlControlCollection <THeaderRowType>(); RegisterChildrenCollection(HeaderRows, FooterRows); }
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); } }
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); } }
/// <summary> /// Initialize the HtmlControlBase and its fields. /// </summary> private HtmlControlBase() { _wrapper = new HtmlElementWrapperBag(); _controls = new HtmlControlCollection(this); }