This document is archived and information here might be outdated.  Recommended version.


IToolbarItem.GroupSpacing Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Controls)  

IToolbarItem.GroupSpacing Property

The width of the group separator in pixels if present.

[Visual Basic .NET]
Public Property GroupSpacing As Integer
[C#]
public int GroupSpacing {get; set;}
[C++]
HRESULT get_GroupSpacing(
  long* pVal
);
[C++]
HRESULT put_GroupSpacing(
  long pVal
);
[C++]

Parameters pVal [out, retval] pVal is a parameter of type long pVal [in] pVal is a parameter of type long

Product Availability

Available with ArcGIS Engine.

Description

Determines the width in pixels of a Group separator if it exists to the left the of the item on the ToolbarControl. The separator appears as verticle line and is drawn to the left of the GroupSpacing. A zero value sets the GroupSpacing to its default value (currently 4 pixels).

[C#]
IToolbarItem toolbarItem=axToolbarControl1.GetItem(0);
toolbarItem.GroupSpacing=8;
//Refresh the changes
axToolbarControl1.Update(0, true);
[Visual Basic .NET]
Dim pToolbarItem As IToolbarItem
pToolbarItem=AxToolbarControl1.GetItem(0)
pToolbarItem.Groupspacing=8
'Refresh the changes
AxToolbarControl1.Update(0, True)

See Also

IToolbarItem Interface