Type | Description | |||
Group as Group | A Group object where the newly item is inserted | |||
Item as HITEM | A long expression that indicates the handle of the item that's inserted to the Items collection. |
private void AddItem(object sender,exontrol.EXPLORERTREELib.Group Group,int Item) { } Private Sub AddItem(ByVal sender As System.Object,ByVal Group As exontrol.EXPLORERTREELib.Group,ByVal Item As Integer) Handles AddItem End Sub |
private void AddItem(object sender, AxEXPLORERTREELib._IExplorerTreeEvents_AddItemEvent e) { } void OnAddItem(LPDISPATCH Group,long Item) { } void __fastcall AddItem(TObject *Sender,Explorertreelib_tlb::IGroup *Group,Explorertreelib_tlb::HITEM Item) { } procedure AddItem(ASender: TObject; Group : IGroup;Item : HITEM); begin end; procedure AddItem(sender: System.Object; e: AxEXPLORERTREELib._IExplorerTreeEvents_AddItemEvent); begin end; begin event AddItem(oleobject Group,long Item) end event AddItem Private Sub AddItem(ByVal sender As System.Object, ByVal e As AxEXPLORERTREELib._IExplorerTreeEvents_AddItemEvent) Handles AddItem End Sub Private Sub AddItem(ByVal Group As EXPLORERTREELibCtl.IGroup,ByVal Item As EXPLORERTREELibCtl.HITEM) End Sub Private Sub AddItem(ByVal Group As Object,ByVal Item As Long) End Sub LPARAMETERS Group,Item PROCEDURE OnAddItem(oExplorerTree,Group,Item) RETURN |
<SCRIPT EVENT="AddItem(Group,Item)" LANGUAGE="JScript"> </SCRIPT> <SCRIPT LANGUAGE="VBScript"> Function AddItem(Group,Item) End Function </SCRIPT> Procedure OnComAddItem Variant llGroup HITEM llItem Forward Send OnComAddItem llGroup llItem End_Procedure METHOD OCX_AddItem(Group,Item) CLASS MainDialog RETURN NIL void onEvent_AddItem(COM _Group,int _Item) { } function AddItem as v (Group as OLE::Exontrol.ExplorerTree.1::IGroup,Item as OLE::Exontrol.ExplorerTree.1::HITEM) end function function nativeObject_AddItem(Group,Item) return |
The following sample changes the bolds the first column in the group, only if the group contains multiple columns:
Private Sub ExplorerTree1_AddItem(ByVal Group As EXPLORERTREELibCtl.IGroup, ByVal Item As EXPLORERTREELibCtl.HITEM) If (Group.Columns.Count > 1) Then With Group.Items .CellBold(Item, 0) = True End With End If End Sub