Skip to main content

GalleryItem.Focus() Method

Focuses this GalleryItem.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v22.1.dll

NuGet Package: DevExpress.Win.Navigation

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