StyleCollection.Insert Method

Inserts a specified Style object into the StyleCollection at the specified index location.

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

public:
void Insert (
	int index, 
	Style^ style
)
public void Insert (
	int index, 
	Style style
)
public function Insert (
	index : int, 
	style : Style
)
Not applicable.

Parameters

index

The zero-based index location at which to insert the Style object.

style

The Style object to insert into the collection.

Use the Insert method to insert a specified Style object into the StyleCollection object at a specified index location.

To add a Style object at the end of the StyleCollection object, use the Add method.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: