event RemoveItem (Item as Item)
Fired when an item was removed.

TypeDescription
Item as Item An Item object that's removed.

Use the RemoveItem event to notify your application that an Item is removed. Use the RemoveItem event to release any extra data hold by an Item object. The RemoveItem method fires the RemoveItem event each time when an item is removed. The control fires the RemoveGroup event  when a group is removed. Use the UserData property to associate an extra data to an item. Use the Visible property to hide an item.

Syntax for RemoveItem event, /NET version, on:

private void RemoveItem(object sender,exontrol.EXLISTBARLib.Item Item)
{
}

Private Sub RemoveItem(ByVal sender As System.Object,ByVal Item As exontrol.EXLISTBARLib.Item) Handles RemoveItem
End Sub

Syntax for RemoveItem event, /COM version, on:

private void RemoveItem(object sender, AxEXLISTBARLib._IListBarEvents_RemoveItemEvent e)
{
}

void OnRemoveItem(LPDISPATCH Item)
{
}

void __fastcall RemoveItem(TObject *Sender,Exlistbarlib_tlb::IItem *Item)
{
}

procedure RemoveItem(ASender: TObject; Item : IItem);
begin
end;

procedure RemoveItem(sender: System.Object; e: AxEXLISTBARLib._IListBarEvents_RemoveItemEvent);
begin
end;

begin event RemoveItem(oleobject Item)
end event RemoveItem

Private Sub RemoveItem(ByVal sender As System.Object, ByVal e As AxEXLISTBARLib._IListBarEvents_RemoveItemEvent) Handles RemoveItem
End Sub

Private Sub RemoveItem(ByVal Item As EXLISTBARLibCtl.IItem)
End Sub

Private Sub RemoveItem(ByVal Item As Object)
End Sub

LPARAMETERS Item

PROCEDURE OnRemoveItem(oListBar,Item)
RETURN

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

<SCRIPT EVENT="RemoveItem(Item)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function RemoveItem(Item)
End Function
</SCRIPT>

Procedure OnComRemoveItem Variant llItem
	Forward Send OnComRemoveItem llItem
End_Procedure

METHOD OCX_RemoveItem(Item) CLASS MainDialog
RETURN NIL

void onEvent_RemoveItem(COM _Item)
{
}

function RemoveItem as v (Item as OLE::Exontrol.ListBar.1::IItem)
end function

function nativeObject_RemoveItem(Item)
return

The following VB sample prints the caption of the item being removed:

Private Sub ListBar1_RemoveItem(ByVal Item As EXLISTBARLibCtl.IItem)
    With Item
        Debug.Print .Caption
    End With
End Sub

The following C++ sample prints the caption of the item being removed:

void OnRemoveItemListbar1(LPDISPATCH Item) 
{
	CItem item( Item ); item.m_bAutoRelease = FALSE;
	CString strOutput;
	strOutput.Format("%s", (LPCTSTR)item.GetCaption() );
	OutputDebugString( strOutput );		
}

The following VB.NET sample prints the caption of the item being removed:

Private Sub AxListBar1_RemoveItem(ByVal sender As Object, ByVal e As AxEXLISTBARLib._IListBarEvents_RemoveItemEvent) Handles AxListBar1.RemoveItem
    With e.item
        Debug.WriteLine(.Caption)
    End With
End Sub

The following C# sample prints the caption of the item being removed:

private void axListBar1_RemoveItem(object sender, AxEXLISTBARLib._IListBarEvents_RemoveItemEvent e)
{
	System.Diagnostics.Debug.WriteLine(e.item.Caption);
}

The following VFP sample prints the caption of the item being removed:

*** ActiveX Control Event ***
LPARAMETERS item

with item
	wait window nowait .Caption
endwith