windowsforms-devexpress-dot-xtratreelist-dot-treelist-926e129e.md
Invalidates scrollbar annotations, and causes them to be redrawn.
Namespace : DevExpress.XtraTreeList
Assembly : DevExpress.XtraTreeList.v25.2.dll
NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList
public virtual void InvalidateScrollAnnotations()
Public Overridable Sub InvalidateScrollAnnotations
The code below invalidates scrollbar annotations when a style changes.
void OnAnnotationsStyleChanged(object sender, ListChangedEventArgs e) {
if(e.ListChangedType == ListChangedType.ItemChanged)
TreeList.InvalidateScrollAnnotations();
}
Private Sub OnAnnotationsStyleChanged(ByVal sender As Object, ByVal e As ListChangedEventArgs) _
Handles stylesSource.ListChanged
If e.ListChangedType = ListChangedType.ItemChanged Then
TreeList.InvalidateScrollAnnotations()
End If
End Sub
Note
Run the Hierarchy Column module in the XtraTreeList MainDemo to see the complete example.
See Also