DesignerAutoFormatCollection.Insert(Int32, DesignerAutoFormat) 方法

定义

DesignerAutoFormat 对象插入到集合中的指定索引处。

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

参数

index
Int32

要插入 format 的位置在集合中从零开始的索引。

format
DesignerAutoFormat

要插入到集合中的 DesignerAutoFormat

例外

index 小于零。

  • 或 - index 大于 Count 属性。

注解

该方法 Insert 将对象添加到 DesignerAutoFormat 集合中的特定索引位置。 若要将单个 DesignerAutoFormat 添加到集合末尾,请使用 Add 该方法。

备注

在集合中插入项时,索引值将更改集合中的后续项。

适用于

另请参阅