DesignerAutoFormatCollection.RemoveAt(Int32) 方法

定义

移除集合中指定索引处的 DesignerAutoFormat 对象。

public:
 void RemoveAt(int index);
public void RemoveAt (int index);
member this.RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)

参数

index
Int32

要从集合中移除的 DesignerAutoFormat 的从零开始的索引。

例外

index 小于零。

  • 或 - index 大于 Count 属性。

注解

使用该方法 RemoveAt 从集合中删除特定索引处的格式。 若要从集合中删除指定格式,请使用 Remove 该方法。 若要从集合中删除所有格式,请使用 Clear 该方法。

备注

从集合中删除项时,索引值会更改集合中的后续项。

适用于

另请参阅