GalleryItem.Focus() Method

Focuses this GalleryItem.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v20.2.dll

Declaration

public bool Focus()
Public Function Focus As Boolean

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