Skip to main content

IDocumentGroupProperties.CloseTabOnMiddleClick Property

Gets or sets the value that determines if tabs in document groups will be closed on a mouse middle click.

Namespace: DevExpress.XtraBars.Docking2010.Views.Tabbed

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

CloseTabOnMiddleClick CloseTabOnMiddleClick { get; set; }

Property Value

Type Description
CloseTabOnMiddleClick

A CloseTabOnMiddleClick value that determines if tabs in document groups will be closed on a mouse middle click.

Available values:

Name Description
Default

The default behavior. Typically, this option is the same as the CloseTabOnMiddleClick.OnMouseDown option.

OnMouseDown

Specifies that tabs will be closed on pressing the mouse middle button over a tab (before the mouse middle button is released).

OnMouseUp

Specifies that tabs will be closed on releasing the mouse middle button over a tab.

Never

Specifies that tabs will never be closed by a mouse middle click.

Remarks

Use a View’s CloseTabOnMiddleClick property to determine if tabs in document groups will be closed on a mouse middle click. This setting is applied to all document groups by default. The IDocumentGroupDefaultProperties.CloseTabOnMiddleClick property allows you to override the CloseTabOnMiddleClick property for an individual document group. To override the default setting, set the IDocumentGroupDefaultProperties.CloseTabOnMiddleClick property to any CloseTabOnMiddleClick value except Default.

If the CloseTabOnMiddleClick property is set to Default, tabs in document groups will be closed on pressing the mouse middle button over a tab (before the mouse middle button is released).

See Also