System.Web.UI.WebControls.CheckBoxList.GetItemStyle Method

Retrieves the style of the specified item type at the specified index in the list control.

Syntax

protected virtual Style GetItemStyle (ListItemType itemType, int repeatIndex)

Parameters

itemType
One of the System.Web.UI.WebControls.ListItemType enumeration values.
repeatIndex
An ordinal index that specifies the location of the item in the list control.

Returns

null, indicating that style attributes are not set on individual list items in a System.Web.UI.WebControls.CheckBoxList control.

Remarks

The CheckBoxList.GetItemStyle(ListItemType, int) method is used primarily by control developers in custom controls that derive from the System.Web.UI.WebControls.CheckBoxList class.

The style attribute for the System.Web.UI.WebControls.CheckBoxList control applies to all list items that are contained by the control. Use the System.Web.UI.WebControls.Style property of the System.Web.UI.WebControls.CheckBoxList to examine or set the style attribute for the control and its list items.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0