WebPartDisplayModeCollection.Insert Method (Int32, WebPartDisplayMode)

 

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
)

Parameters

index
Type: System.Int32

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

value
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
Show: