本文整理匯總了VB.NET中System.Web.UI.HtmlControls.HtmlTable.HtmlTableRowControlCollection類的典型用法代碼示例。如果您正苦於以下問題:VB.NET HtmlTable.HtmlTableRowControlCollection類的具體用法?VB.NET HtmlTable.HtmlTableRowControlCollection怎麽用?VB.NET HtmlTable.HtmlTableRowControlCollection使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了HtmlTable.HtmlTableRowControlCollection類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的VB.NET代碼示例。
示例1: New
' 導入命名空間
Imports System.Web
Imports System.Web.UI
Imports System.Security.Permissions
Namespace Samples.AspNet.VB.Controls
<AspNetHostingPermission(SecurityAction.Demand, Level:=AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class CustomHtmlTableRowControlCollection
Inherits System.Web.UI.HtmlControls.HtmlTable
Protected Overrides Function CreateControlCollection() As System.Web.UI.ControlCollection
Return New MyHtmlTableRowControlCollection(Me)
End Function
Protected Class MyHtmlTableRowControlCollection
Inherits ControlCollection
Friend Sub New(ByVal owner As Control)
MyBase.New(owner)
End Sub
Public Overrides Sub Add(ByVal child As Control)
' Always add new rows at the top of the table.
MyBase.AddAt(0, child)
End Sub
End Class
End Class
End Namespace
開發者ID:VB.NET開發者,項目名稱:System.Web.UI.HtmlControls,代碼行數:37,代碼來源:HtmlTable.HtmlTableRowControlCollection