RadioButtonList.IRepeatInfoUser.GetItemStyle(ListItemType, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the style of the specified item type at the specified index in the list control.
virtual System::Web::UI::WebControls::Style ^ System.Web.UI.WebControls.IRepeatInfoUser.GetItemStyle(System::Web::UI::WebControls::ListItemType itemType, int repeatIndex) = System::Web::UI::WebControls::IRepeatInfoUser::GetItemStyle;
System.Web.UI.WebControls.Style IRepeatInfoUser.GetItemStyle (System.Web.UI.WebControls.ListItemType itemType, int repeatIndex);
abstract member System.Web.UI.WebControls.IRepeatInfoUser.GetItemStyle : System.Web.UI.WebControls.ListItemType * int -> System.Web.UI.WebControls.Style
override this.System.Web.UI.WebControls.IRepeatInfoUser.GetItemStyle : System.Web.UI.WebControls.ListItemType * int -> System.Web.UI.WebControls.Style
Function GetItemStyle (itemType As ListItemType, repeatIndex As Integer) As Style Implements IRepeatInfoUser.GetItemStyle
Parameters
- itemType
- ListItemType
One of the ListItemType enumeration values.
- repeatIndex
- Int32
An ordinal index that specifies the location of the item in the list.
Returns
A Style that represents the style of the specified item type at the specified index in the list control.
Implements
Remarks
Typically, you should use the RadioButtonList.GetItemStyle method to retrieve the style of an item in a RadioButtonList control.
The IRepeatInfoUser.GetItemStyle method is an explicit interface member implementation. It can be used only when the RadioButtonList instance is cast to an IRepeatInfoUser interface.
Notes to Inheritors
To define a custom implementation for retrieving the style of an item in a RadioButtonList control, override the GetItemStyle(ListItemType, Int32) method. The explicit interface implementation calls the GetItemStyle(ListItemType, Int32) method to retrieve the style of an item.
Applies to
See also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈