[]
        
(Showing Draft Content)

C1.Win.FlexGrid.C1FlexGridBase.ScrollToScrollBarAnnotation

ScrollToScrollBarAnnotation Method

ScrollToScrollBarAnnotation(ScrollBarAnnotation)

Scrolls to scrollbar annotation.

Declaration
public void ScrollToScrollBarAnnotation(ScrollBarAnnotation annotation)
Public Sub ScrollToScrollBarAnnotation(annotation As ScrollBarAnnotation)
Parameters
Type Name Description
ScrollBarAnnotation annotation

Scrollbar annotation instance.

Examples

Provide an annotation to the method (for example from the ScrollBarAnnotations collection) and it will scroll to it.

private void Button_Click(object sender, EventArgs e)
{
    ScrollBarAnnotation firstAnnotation = c1FlexGrid1.ScrollBarAnnotations.First();
    c1FlexGrid1.ScrollToScrollBarAnnotation(firstAnnotation);
}