System.Web.UI.WebControls.CheckBoxList.Render C# (CSharp) Method

Render() protected method

protected Render ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter
return void
		override void Render (HtmlTextWriter writer)
		{
#if NET_2_0
			if (Items.Count == 0)
				return;
#endif
			RepeatInfo ri = new RepeatInfo ();
			ri.RepeatColumns = RepeatColumns;
			ri.RepeatDirection = RepeatDirection;
			ri.RepeatLayout = RepeatLayout;

			short ti = 0;
			if (TabIndex != 0) {
				check_box.TabIndex = TabIndex;
				ti = TabIndex;
				TabIndex = 0;
			}
#if NET_2_0
			string ak = AccessKey;
			check_box.AccessKey = ak;
			this.AccessKey = null;
#endif

			ri.RenderRepeater (writer, this, TableStyle, this);

			if (ti != 0)
				TabIndex = ti;
#if NET_2_0
			this.AccessKey = ak;
#endif
		}