TreeList.InvalidateScrollAnnotations() Method

Invalidates scrollbar annotations, and causes them to be redrawn.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v20.1.dll

Declaration

public virtual void InvalidateScrollAnnotations()
Public Overridable Sub 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