本文整理汇总了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