Redigera

Dela via


RadioButtonList.GetItemStyle(ListItemType, Int32) Method

Definition

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

protected:
 virtual System::Web::UI::WebControls::Style ^ GetItemStyle(System::Web::UI::WebControls::ListItemType itemType, int repeatIndex);
protected virtual 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
override this.GetItemStyle : System.Web.UI.WebControls.ListItemType * int -> System.Web.UI.WebControls.Style
Protected Overridable 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

null, indicating that style attributes are not set on individual list items in a RadioButtonList control.

Remarks

The GetItemStyle method is used primarily by control developers in custom controls that derive from the RadioButtonList class.

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

Applies to

See also