MobileListItemType 列舉

定義

警告

此 API 現已淘汰。

將項目型別指派給 ListObjectList 控制項之子控制項中的項目。Assigns an item type to an element in a List or ObjectList control's child controls. 這個類別無法被繼承。This class cannot be inherited. 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps & Sites with ASP.NET (使用 ASP.NET 來開發行動應用程式與網站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public enum class MobileListItemType
public enum MobileListItemType
[System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see https://go.microsoft.com/fwlink/?LinkId=157231.")]
public enum MobileListItemType
type MobileListItemType = 
Public Enum MobileListItemType
繼承
MobileListItemType
屬性

欄位

FooterItem 2

表示清單的頁尾。Represents a footer for a list. 這個 API 已經過時。This API is obsolete. 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps & Sites with ASP.NET (使用 ASP.NET 來開發行動應用程式與網站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

HeaderItem 0

表示清單的標題。Represents a heading for a list. 這個 API 已經過時。This API is obsolete. 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps & Sites with ASP.NET (使用 ASP.NET 來開發行動應用程式與網站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

ListItem 1

表示清單中的項目。Represents an item in a list. 這個 API 已經過時。This API is obsolete. 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps & Sites with ASP.NET (使用 ASP.NET 來開發行動應用程式與網站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

SeparatorItem 3

表示清單項目間的分隔符號。Represents a separator between list items. 這個 API 已經過時。This API is obsolete. 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps & Sites with ASP.NET (使用 ASP.NET 來開發行動應用程式與網站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

備註

ListObjectList 控制項以樣板化模式轉譯時,會針對需要轉譯的每個標頭、頁尾或分隔符號,建立具有對應專案類型的空白 MobileListItem 物件。When a List or ObjectList control is rendered in templated mode, empty MobileListItem objects with the corresponding item type are created for each header, footer, or separator that needs to be rendered. 這些空白物件接著會插入控制項的子控制項中。These empty objects are then inserted into the control's child controls.

注意

對應至清單專案 MobileListItem 物件一律具有 ListItem類型。MobileListItem objects that correspond to list items always have a type of ListItem.

您可以使用這個列舉來逐一查看 controls 集合,並尋找對應至標頭、頁尾和分隔符號範本的 MobileListItem 物件。You can use this enumeration for iterating through the controls collection and finding the MobileListItem objects corresponding to the header, footer, and separator templates.

適用於

另請參閱