Table of Contents

Method InsertSeparatorCore

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

InsertSeparatorCore(int)

Inserts a separator item at the specified index within the toolbar.

public virtual ToolBarSeparatorItem InsertSeparatorCore(int index)

Parameters

index int

The zero-based index at which the separator item should be inserted.

Returns

ToolBarSeparatorItem

The ToolBarSeparatorItem that was inserted.

Remarks

The separator item is created using the CreateToolSeparator() method. If a default separator color is specified via DefaultSeparatorColor, it is applied to the separator's border. The item properties are updated to reflect its kind as a separator before being added to the toolbar's children.