IRepeatInfoUser.GetItemStyle(ListItemType, Int32) Method

Definition

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

C#
public System.Web.UI.WebControls.Style GetItemStyle(System.Web.UI.WebControls.ListItemType itemType, int repeatIndex);

Parameters

itemType
ListItemType

One of the ListItemType enumeration values.

repeatIndex
Int32

An ordinal index that specifies the location of the item in the list control.

Returns

A 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 IRepeatInfoUser interface must implement the GetItemStyle method to retrieve the style of the specified item type at the specified index in the list control.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also