System.Web.UI.WebControls.IRepeatInfoUser.GetItemStyle Method

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

Syntax

public 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

A System.Web.UI.WebControls.Style that represents the style of the specified item type at the specified index in the list control.

Remarks

A list control that inherits from the System.Web.UI.WebControls.IRepeatInfoUser interface must implement the IRepeatInfoUser.GetItemStyle(ListItemType, int) method to retrieve the style of the specified item type at the specified index in the list control.

Requirements

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