BaseGallery.ScrollTo(GalleryItem, Boolean) Method

Scrolls the gallery (with or without an animation effect) making the specified item visible.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v20.1.dll


public virtual void ScrollTo(
    GalleryItem item,
    bool bAnimated
Public Overridable Sub ScrollTo(
    item As GalleryItem,
    bAnimated As Boolean


Name Type Description
item GalleryItem

A GalleryItem object to be made visible.

bAnimated Boolean

true to use an animation effect when scrolling; otherwise, false.


This method calls another ScrollTo method overload with the itemAlignment parameter set to VertAlignment.Default.

See Also