summaryM:DotNetNuke.Web.UI.WebControls.Extensions.ListControlExtensions.InsertItem(System.Web.UI.WebControls.ListControl,System.Int32,System.String,System.String)

Namespace: DotNetNuke.Web.UI.WebControls.Extensions
Assembly: DotNetNuke.Web (in DotNetNuke.Web.dll)

Syntax

C#
public static void InsertItem(
	this ListControl control,
	int index,
	string text,
	string value
)
Visual Basic
<ExtensionAttribute> 
Public Shared Sub InsertItem ( 
	control As ListControl,
	index As Integer,
	text As String,
	value As String
)

Parameters

control
Type: System.Web.UI.WebControls..::..ListControl
paramcontrolM:DotNetNuke.Web.UI.WebControls.Extensions.ListControlExtensions.InsertItem(System.Web.UI.WebControls.ListControl,System.Int32,System.String,System.String)
index
Type: System..::..Int32
paramindexM:DotNetNuke.Web.UI.WebControls.Extensions.ListControlExtensions.InsertItem(System.Web.UI.WebControls.ListControl,System.Int32,System.String,System.String)
text
Type: System..::..String
paramtextM:DotNetNuke.Web.UI.WebControls.Extensions.ListControlExtensions.InsertItem(System.Web.UI.WebControls.ListControl,System.Int32,System.String,System.String)
value
Type: System..::..String
paramvalueM:DotNetNuke.Web.UI.WebControls.Extensions.ListControlExtensions.InsertItem(System.Web.UI.WebControls.ListControl,System.Int32,System.String,System.String)

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ListControl. When you use instance method syntax to call this method, omit the first parameter. For more information, see [b8020aae-374d-46a9-bcb7-8cc2390b93b6] or [175ce3ff-9bbf-4e64-8421-faeb81a0bb51].

See Also