Skip to main content
A newer version of this page is available. .

GalleryItem.Focus() Method

Focuses this GalleryItem.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v19.2.dll

Declaration

public bool Focus()

Returns

Type Description
Boolean

true, if the item was successfully focused; otherwise, false.

Remarks

The Focus method focuses the current gallery item, emulating an end-user hovering this item. The currently focused item can be obtained using the BaseGallery.FocusedItem property.

See Also