Back to Devexpress

GalleryItem.Focus() Method

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-galleryitem-b75e5265.md

latest1.4 KB
Original Source

GalleryItem.Focus() Method

Focuses this GalleryItem.

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public bool Focus()
vb
Public Function Focus As Boolean

Returns

TypeDescription
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

FocusedItem

GalleryItem Class

GalleryItem Members

DevExpress.XtraBars.Ribbon Namespace