RadioButtonList.GetItemStyle(ListItemType, Int32) 方法
定义
检索列表控件中指定索引位置的指定项类型的样式。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
参数
- itemType
- ListItemType
ListItemType 枚举值之一。One of the ListItemType enumeration values.
- repeatIndex
- Int32
指定列表控件中项的位置的序号索引。An ordinal index that specifies the location of the item in the list control.
返回
null,该值指示 RadioButtonList 控件的各列表项中未设置样式特性。null, indicating that style attributes are not set on individual list items in a RadioButtonList control.
注解
GetItemStyle方法主要由从类派生的自定义控件中的控件开发人员使用 RadioButtonList 。The GetItemStyle method is used primarily by control developers in custom controls that derive from the RadioButtonList class.
控件的样式特性 RadioButtonList 适用于控件包含的所有列表项。The style attribute for the RadioButtonList control applies to all list items that are contained by the control. 使用 Style 控件的属性 RadioButtonList 来检查或设置控件及其列表项的样式特性。Use the Style property of the RadioButtonList control to examine or set the style attribute for the control and its list items.