Rediger

Del via


IRepeatInfoUser.GetItemStyle(ListItemType, Int32) Method

Definition

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

public:
 System::Web::UI::WebControls::Style ^ GetItemStyle(System::Web::UI::WebControls::ListItemType itemType, int repeatIndex);
public System.Web.UI.WebControls.Style GetItemStyle (System.Web.UI.WebControls.ListItemType itemType, int repeatIndex);
abstract member GetItemStyle : System.Web.UI.WebControls.ListItemType * int -> System.Web.UI.WebControls.Style
Public Function GetItemStyle (itemType As ListItemType, repeatIndex As Integer) As Style

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

See also