method ExplorerBar.EndUpdate ()
Resumes painting the control after painting is suspended by the BeginUpdate method.

TypeDescription

Use the BeginUpdate and EndUpdate methods to maintain performance while adding multiple groups and items. Use the Refresh method to refresh the control's content. Use the Add method to add a new group to the control. Use the AddItem method to add new items to the group.

The following VB sample adds a group and two items:

With ExplorerBar1
    .BeginUpdate
    With .Groups.Add("Group 1")
        .AddItem "Item 1"
        .AddItem "Item 2"
    End With
    .EndUpdate
End With

The following C++ sample adds a group and two items:

#include "Item.h"
#include "Group.h"
#include "Groups.h"
m_explorerbar.BeginUpdate();
COleVariant vtMissing; V_VT( &vtMissing ) = VT_ERROR;
CGroups groups = m_explorerbar.GetGroups();
CGroup group = groups.Add("Group 1");
group.AddItem( "Item 1", vtMissing );
group.AddItem( "Item 2", vtMissing );
m_explorerbar.EndUpdate();

The following VB.NET sample adds a group and two items:

With AxExplorerBar1
    .BeginUpdate()
    With .Groups.Add("Group 1")
        .AddItem("Item 1")
        .AddItem("Item 2")
    End With
    .EndUpdate()
End With

The following C# sample adds a group and two items:

axExplorerBar1.BeginUpdate();
EXPLORERBARLib.Group group = axExplorerBar1.Groups.Add("Group 1");
group.AddItem("Item 1", null);
group.AddItem("Item 2", null);
axExplorerBar1.EndUpdate();

The following VFP sample adds a group and two items:

With thisform.ExplorerBar1
    .BeginUpdate()
    With .Groups.Add("Group 1")
        .AddItem("Item 1")
        .AddItem("Item 2")
    EndWith
    .EndUpdate()
EndWith