Back to Devexpress

TreeList.InvalidateScrollAnnotations() Method

windowsforms-devexpress-dot-xtratreelist-dot-treelist-926e129e.md

latest1.9 KB
Original Source

TreeList.InvalidateScrollAnnotations() Method

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

Declaration

csharp
public virtual void InvalidateScrollAnnotations()
vb
Public Overridable Sub InvalidateScrollAnnotations

Remarks

The code below invalidates scrollbar annotations when a style changes.

csharp
void OnAnnotationsStyleChanged(object sender, ListChangedEventArgs e) {
    if(e.ListChangedType == ListChangedType.ItemChanged)
        TreeList.InvalidateScrollAnnotations();
}
vb
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

RefreshScrollAnnotations

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace