Прочетете на английски Редактиране

Споделяне чрез


DesignerAutoFormatCollection.Insert(Int32, DesignerAutoFormat) Method

Definition

Inserts a DesignerAutoFormat object into the collection at the specified index.

C#
public void Insert(int index, System.Web.UI.Design.DesignerAutoFormat format);

Parameters

index
Int32

The zero-based index within the collection at which to insert format.

format
DesignerAutoFormat

The DesignerAutoFormat to insert into the collection.

Exceptions

index is less than zero.

-or-

index is greater than the Count property.

Remarks

The Insert method adds a DesignerAutoFormat object to the collection at a specific index location. To add a single DesignerAutoFormat to the end of the collection, use the Add method.

Бележка

When you insert an item into a collection, the index values change for subsequent items in the collection.

Applies to

Продукт Версии
.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