

| Type | Description | |||
| Options as Variant |
Specifies a long expression as follows:
If missing, the Options parameter is 0. If the control displays no items, the result is an empty object (VT_EMPTY). |
| Return | Description | |||
| Variant | A safe array that holds the items in the control. If the control has a single column, the GetItems returns a single dimension array (object[]), else The safe array being returned has two dimensions (object[,]). The first dimension holds the collection of columns, and the second holds the cells. |
/NET Assembly:
The following C# sample converts the returned value to a object[] when the control contains a single column:
object[] Items = (object[])group.GetItems()
or when the control contains multiple columns, the syntax is as follows:
object[,] Items = (object[,])group.GetItems()
The following VB.NET sample converts the returned value to a Object() when the control contains a single column:
Dim Items As Object() = group.GetItems()
or when the control contains multiple columns, the syntax is as follows:
Dim Items As Object(,) = group.GetItems()
/COM version:
The following sample gets the items from a group and put them to the second one:
With Group2
.BeginUpdate
.Columns.Clear
Dim c As EXPLORERTREELibCtl.Column
For Each c In Group1.Columns
.Columns.Add c.Caption
Next
.PutItems Group1.GetItems
.EndUpdate
End With