This version of Unity is unsupported.

DropdownMenu.PrepareForDisplay

public void PrepareForDisplay(UIElements.EventBase e);

Description

Update the status of all items by calling their status callback and remove the separators in excess. This is called just before displaying the menu.