event AfterCollapse (SelFolder as ExShellFolder)
Fired after folder has collapsed.

TypeDescription
SelFolder as ExShellFolder A Folder being collapsed.
When user double clicks on a folder, or on a '+' button next to a folder, it expands. Or, if it was already expanded, it collapses. When a folder collapses, two events are fired. BeforeCollapse is fired before ExFolderView changes its structure, so additional functions can be executed. The AfterCollapse event is fired after the structure has changed. Usually, expanding and collapsing folders will result in more or fewer folders visible after this event, so if some additional code is required it should be put inside this event.

Syntax for AfterCollapse event, /NET version, on:

private void AfterCollapse(object sender,exontrol.EXFOLDERVIEWLib.ExShellFolder SelFolder)
{
}

Private Sub AfterCollapse(ByVal sender As System.Object,ByVal SelFolder As exontrol.EXFOLDERVIEWLib.ExShellFolder) Handles AfterCollapse
End Sub

Syntax for AfterCollapse event, /COM version, on:

private void AfterCollapse(object sender, AxEXFOLDERVIEWLib._IExFolderViewEvents_AfterCollapseEvent e)
{
}

void OnAfterCollapse(LPDISPATCH SelFolder)
{
}

void __fastcall AfterCollapse(TObject *Sender,Exfolderviewlib_tlb::IExShellFolder *SelFolder)
{
}

procedure AfterCollapse(ASender: TObject; SelFolder : IExShellFolder);
begin
end;

procedure AfterCollapse(sender: System.Object; e: AxEXFOLDERVIEWLib._IExFolderViewEvents_AfterCollapseEvent);
begin
end;

begin event AfterCollapse(oleobject SelFolder)
end event AfterCollapse

Private Sub AfterCollapse(ByVal sender As System.Object, ByVal e As AxEXFOLDERVIEWLib._IExFolderViewEvents_AfterCollapseEvent) Handles AfterCollapse
End Sub

Private Sub AfterCollapse(ByVal SelFolder As EXFOLDERVIEWLibCtl.IExShellFolder)
End Sub

Private Sub AfterCollapse(ByVal SelFolder As Object)
End Sub

LPARAMETERS SelFolder

PROCEDURE OnAfterCollapse(oExFolderView,SelFolder)
RETURN

Syntax for AfterCollapse event, /COM version (others), on:

<SCRIPT EVENT="AfterCollapse(SelFolder)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function AfterCollapse(SelFolder)
End Function
</SCRIPT>

Procedure OnComAfterCollapse Variant llSelFolder
	Forward Send OnComAfterCollapse llSelFolder
End_Procedure

METHOD OCX_AfterCollapse(SelFolder) CLASS MainDialog
RETURN NIL

void onEvent_AfterCollapse(COM _SelFolder)
{
}

function AfterCollapse as v (SelFolder as OLE::Exontrol.FolderView.1::IExShellFolder)
end function

function nativeObject_AfterCollapse(SelFolder)
return