Skip to main content

BaseGallery.ScrollTo(GalleryItem, Boolean, VertAlignment) Method

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

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v23.1.dll

NuGet Package: DevExpress.Win.Navigation


public virtual void ScrollTo(
    GalleryItem item,
    bool bAnimated,
    VertAlignment itemAlignment


Name Type Description
item GalleryItem

A GalleryItem object to be made visible.

bAnimated Boolean

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

itemAlignment VertAlignment

A VertAlignment value that specifies the position at which the gallery item will be displayed within the display region after scrolling.

See Also