Back to Devexpress

SchedulerViewBase.LayoutChanged() Method

windowsforms-devexpress-dot-xtrascheduler-dot-schedulerviewbase-09e40f28.md

latest3.2 KB
Original Source

SchedulerViewBase.LayoutChanged() Method

Updates the View and forces the scheduler control to display any changes made to the View’s layout.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public void LayoutChanged()
vb
Public Sub LayoutChanged

Remarks

The LayoutChanged method is used to indicate that the current View’s layout has been changed and it needs to be repainted.

The LayoutChanged method recalculates all the graphical information of the current View and redraws it. This method is automatically called when changes are applied to the View. You can also call this method manually to update the View.

The following code snippets (auto-collected from DevExpress Examples) contain references to the LayoutChanged() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-scheduler-formatting-services/CS/FormattingServicesExample/Form1.cs#L68

csharp
schedulerControl1.ActiveView.LayoutChanged();
}

winforms-scheduler-sort-resources/CS/Form1.cs#L54

csharp
schedulerStorage1.Resources.Items.Sort(comparer);
    schedulerControl1.ActiveView.LayoutChanged();
}

winforms-scheduler-formatting-services/VB/FormattingServicesExample/Form1.vb#L72

vb
schedulerControl1.AddService(GetType(IHeaderToolTipService), customHeaderToolTipService)
    schedulerControl1.ActiveView.LayoutChanged()
Else

winforms-scheduler-sort-resources/VB/Form1.vb#L58

vb
schedulerStorage1.Resources.Items.Sort(comparer)
    schedulerControl1.ActiveView.LayoutChanged()
End Sub

See Also

SchedulerViewBase Class

SchedulerViewBase Members

DevExpress.XtraScheduler Namespace