windowsforms-devexpress-dot-xtrascheduler-dot-resourcedatastorage-9cc96aa0.md
Returns the number of resources stored in this ResourceDataStorage.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.dll
NuGet Package : DevExpress.Win.Scheduler
[Browsable(false)]
public int Count { get; }
<Browsable(False)>
Public ReadOnly Property Count As Integer
| Type | Description |
|---|---|
| Int32 |
An Int32 value that is the amount of resources stored in this ResourceDataStorage.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Count property.
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-manage-resources-runtime/CS/SchedulerResourcesManagement/Form1.cs#L106
private void ScrollToLastResource() {
schedulerControl1.ActiveView.FirstVisibleResourceIndex = Math.Max(0, schedulerStorage1.Resources.Count - schedulerControl1.ActiveView.ResourcesPerPage);
schedulerControl1.Services.Selection.SelectedResource = schedulerStorage1.Resources[schedulerStorage1.Resources.Count - 1];
winforms-scheduler-formatting-services/CS/FormattingServicesExample/Data/Data.cs#L30
void PrepareMeetings(DateTime refTime) {
int resourceCount = schedulerStorage1.Resources.Count;
System.Diagnostics.Debug.Assert(resourceCount == 8);
winforms-scheduler-bind-to-custom-objects/CS/CustomObjectsBinding/Form1.cs#L78
private void GenerateEvents(BindingList<CustomAppointment> eventList) {
int count = schedulerDataStorage1.Resources.Count;
winforms-scheduler-custom-draw-appointments/CS/CustomDrawDemo/Form1.cs#L78
void GenerateEvents(CustomEventList eventList) {
int count = schedulerDataStorage1.Resources.Count;
for(int i = 0; i < count; i++) {
winforms-scheduler-manage-resources-runtime/VB/SchedulerResourcesManagement/Form1.vb#L109
Private Sub ScrollToLastResource()
schedulerControl1.ActiveView.FirstVisibleResourceIndex = Math.Max(0, schedulerStorage1.Resources.Count - schedulerControl1.ActiveView.ResourcesPerPage)
schedulerControl1.Services.Selection.SelectedResource = schedulerStorage1.Resources(schedulerStorage1.Resources.Count - 1)
winforms-scheduler-formatting-services/VB/FormattingServicesExample/Data/Data.vb#L26
Private Sub PrepareMeetings(ByVal refTime As Date)
Dim resourceCount As Integer = schedulerStorage1.Resources.Count
System.Diagnostics.Debug.Assert(resourceCount = 8)
winforms-scheduler-bind-to-custom-objects/VB/CustomObjectsBinding/Form1.vb#L81
Private Sub GenerateEvents(ByVal eventList As BindingList(Of CustomAppointment))
Dim count As Integer = SchedulerDataStorage1.Resources.Count
winforms-scheduler-custom-draw-appointments/VB/CustomDrawDemo/Form1.vb#L77
Private Sub GenerateEvents(ByVal eventList As CustomEventList)
Dim count As Integer = SchedulerDataStorage1.Resources.Count
For i As Integer = 0 To count - 1
See Also