Redigera

Dela via


StyleCollection.Insert(Int32, Style) Method

Definition

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

public:
 void Insert(int index, System::Web::UI::WebControls::Style ^ style);
public void Insert (int index, System.Web.UI.WebControls.Style style);
member this.Insert : int * System.Web.UI.WebControls.Style -> unit
Public Sub Insert (index As Integer, style As Style)

Parameters

index
Int32

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

style
Style

The Style object to insert into the collection.

Remarks

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.

Applies to

See also