WebPartDisplayModeCollection.Insert Method (Int32, WebPartDisplayMode)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Inserts a WebPartDisplayMode object into the collection at the specified index position.

Namespace:   System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

public void Insert(
	int index,
	WebPartDisplayMode value


Type: System.Int32

An integer indicating the ordinal position in the collection at which a WebPartDisplayMode should be inserted.

Type: System.Web.UI.WebControls.WebParts.WebPartDisplayMode

A WebPartDisplayMode to insert into the collection.

If index equals the number of items in the collection, then value is appended to the end of the collection.

.NET Framework
Available since 2.0
Return to top