HorizontalMenuControl.getGapBetweenItems

The separation between menu items in the top level menu. Any background specified with the background property will be visible behind the gaps.

Further documentation.

returns java.lang.String