CheckBoxList.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.
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 CheckBoxList control.
Remarks
The GetItemStyle method is used primarily by control developers in custom controls that derive from the CheckBoxList class.
The style attribute for the CheckBoxList control applies to all list items that are contained by the control. Use the Style property of the CheckBoxList to examine or set the style attribute for the control and its list items.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기