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[])view1.GetItems()
or when the control contains multiple columns, the syntax is as follows:
object[,] Items = (object[,])view1.GetItems()
The following VB.NET sample converts the returned value to a Object() when the control contains a single column:
Dim Items As Object() = View1.GetItems()
or when the control contains multiple columns, the syntax is as follows:
Dim Items As Object(,) = View1.GetItems()