StyleCollection.Add(Style) Method

Definition

Appends a specified Style object to the end of the StyleCollection object.

C#
public int Add(System.Web.UI.WebControls.Style style);

Parameters

style
Style

The Style object to add to the collection.

Returns

The index at which the style was added to the collection.

Remarks

Use the Add method to append the specified Style object to the end of the StyleCollection object.

To add a Style object to the collection at a specific index location, use the Insert method.

Applies to

Ürün Sürümler
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also