Skip to main content
All docs
V26.1
  • TreeList.InvalidateScrollAnnotations() Method

    Invalidates scrollbar annotations, and causes them to be redrawn.

    Namespace: DevExpress.XtraTreeList

    Assembly: DevExpress.XtraTreeList.v26.1.dll

    NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

    Declaration

    public virtual void InvalidateScrollAnnotations()

    Remarks

    The code below invalidates scrollbar annotations when a style changes.

    void OnAnnotationsStyleChanged(object sender, ListChangedEventArgs e) {
        if(e.ListChangedType == ListChangedType.ItemChanged)
            TreeList.InvalidateScrollAnnotations();
    }
    

    Note

    Run the Hierarchy Column module in the XtraTreeList MainDemo to see the complete example.

    See Also