ListViewGroupCollection.Item[] 属性

定义

获取或设置集合中的一个 ListViewGroup

重载

名称 说明
Item[String]

获取或设置 ListViewGroup 具有指定 Name 属性值的属性值。

Item[Int32]

获取或设置 ListViewGroup 集合中的指定索引处。

Item[String]

Source:
ListViewGroupCollection.cs
Source:
ListViewGroupCollection.cs
Source:
ListViewGroupCollection.cs
Source:
ListViewGroupCollection.cs
Source:
ListViewGroupCollection.cs

获取或设置 ListViewGroup 具有指定 Name 属性值的属性值。

public:
 property System::Windows::Forms::ListViewGroup ^ default[System::String ^] { System::Windows::Forms::ListViewGroup ^ get(System::String ^ key); void set(System::String ^ key, System::Windows::Forms::ListViewGroup ^ value); };
public System.Windows.Forms.ListViewGroup this[string key] { get; set; }
public System.Windows.Forms.ListViewGroup? this[string key] { get; set; }
member this.Item(string) : System.Windows.Forms.ListViewGroup with get, set
Default Public Property Item(key As String) As ListViewGroup

参数

key
String

要获取或设置的组的名称。

属性值

ListViewGroup具有指定名称或null不存在此类ListViewGroup名称。

适用于

Item[Int32]

Source:
ListViewGroupCollection.cs
Source:
ListViewGroupCollection.cs
Source:
ListViewGroupCollection.cs
Source:
ListViewGroupCollection.cs
Source:
ListViewGroupCollection.cs

获取或设置 ListViewGroup 集合中的指定索引处。

public:
 property System::Windows::Forms::ListViewGroup ^ default[int] { System::Windows::Forms::ListViewGroup ^ get(int index); void set(int index, System::Windows::Forms::ListViewGroup ^ value); };
public System.Windows.Forms.ListViewGroup this[int index] { get; set; }
member this.Item(int) : System.Windows.Forms.ListViewGroup with get, set
Default Public Property Item(index As Integer) As ListViewGroup

参数

index
Int32

要获取或设置的 ListViewGroup 集合中的索引。

属性值

ListViewGroup集合中指定索引处。

例外

index 小于 0 或大于或等于 Count

注解

使用此属性检索集合中指定索引处的组。 如果对组对象具有引用并需要索引,请使用 IndexOf 该方法。

适用于