Back to Devexpress

RibbonHitInfo.GalleryItem Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-viewinfo-dot-ribbonhitinfo-ac26cce3.md

latest2.6 KB
Original Source

RibbonHitInfo.GalleryItem Property

Gets the Gallery item located at the test point.

Namespace : DevExpress.XtraBars.Ribbon.ViewInfo

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public GalleryItem GalleryItem { get; }
vb
Public ReadOnly Property GalleryItem As GalleryItem

Property Value

TypeDescription
GalleryItem

A GalleryItem object which represents the Gallery item located at the test point. null ( Nothing in Visual Basic) if there isn’t any Gallery item located at the test point.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GalleryItem property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-gallerycontrol-drag-drop-items/CS/DragDropExample/DragDropHelper.cs#L65

csharp
if (checkedItems.Count == 0)
    checkedItems.Add(DragItemHitInfo.GalleryItem);
if (!new Rectangle(DragItemHitInfo.HitPoint.X - SystemInformation.DragSize.Width / 2,

winforms-gallerycontrol-drag-drop-items/VB/DragDropExample/DragDropHelper.vb#L65

vb
If checkedItems.Count = 0 Then
    checkedItems.Add(DragItemHitInfo.GalleryItem)
End If

See Also

RibbonHitInfo Class

RibbonHitInfo Members

DevExpress.XtraBars.Ribbon.ViewInfo Namespace