Export (0) Print
Expand All

ListViewGroupCollection.Insert Method

Inserts the specified ListViewGroup into the collection at the specified index.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public void Insert (
	int index,
	ListViewGroup group
)
public void Insert (
	int index, 
	ListViewGroup group
)
public function Insert (
	index : int, 
	group : ListViewGroup
)
Not applicable.

Parameters

index

The index within the collection at which to insert the group.

group

The ListViewGroup to insert into the collection.

Use this method to insert an existing ListViewGroup at a particular index within the collection.

You cannot add a ListViewGroup to the collection more than once. When you call the Insert method using a group that is already in the collection, the insertion simply fails. Use the Contains method before the insertion to determine whether a particular group is already in the collection. To reposition a group within the collection, you must first remove it, and then insert it at the desired index.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft