Type | Description | |||
Variant | A Safe-Array of Item objects that indicates the checked items in the control. The collection does include only items with the Check property set on True. |
The following VB sample displays the caption of the items being checked in the control:
Dim c As Variant For Each c In contextMenu.GetChecked Debug.Print vbTab & c.Caption Next
The following VB/NET sample displays the caption of the items being checked in the control:
Dim c As Object For Each c In Excontextmenu1.GetChecked Debug.Print(vbTab & c.Caption) Next
The following C# sample displays the caption of the items being checked in the control:
foreach (exontrol.EXCONTEXTMENULib.Item i in excontextmenu1.GetChecked) System.Diagnostics.Debug.Print("\t" + i.Caption);