Back to Devexpress

ResourceDataStorage.Items Property

windowsforms-devexpress-dot-xtrascheduler-dot-resourcedatastorage-9efed62a.md

latest5.1 KB
Original Source

ResourceDataStorage.Items Property

Gets the collection of resources within the storage.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
[Browsable(false)]
public ResourceCollection Items { get; }
vb
<Browsable(False)>
Public ReadOnly Property Items As ResourceCollection

Property Value

TypeDescription
ResourceCollection

A ResourceCollection object that contains a collection of resources.

|

Remarks

Use this property to access the collection of resources within the resource storage. You can add, remove and access individual items using the properties and methods of the returned ResourceCollection object.

Items contained within the collection can be accessed with the ResourceDataStorage.Item property using index notation.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Items 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-formatting-services/CS/FormattingServicesExample/Data/Data.cs#L21

csharp
public static void FillResources(SchedulerDataStorage storage, int count) {
    ResourceCollection resources = storage.Resources.Items;
    int cnt = Math.Min(count, Users.Length);

winforms-scheduler-customize-popup-menu/CS/PopupMenuCustomization/MySchedulerHelper.cs#L11

csharp
public static void FillResources(SchedulerDataStorage storage, int count) {
    ResourceCollection resources = storage.Resources.Items;
    int cnt = Math.Min(count, Users.Length);

winforms-scheduler-drag-drop-appointments-from-grid/CS/T179722/DataHelper.cs#L37

csharp
public static void FillResources(SchedulerDataStorage storage, int count) {
    ResourceCollection resources = storage.Resources.Items;

winforms-scheduler-formatting-services/VB/FormattingServicesExample/Data/Data.vb#L18

vb
Public Shared Sub FillResources(ByVal storage As SchedulerDataStorage, ByVal count As Integer)
    Dim resources As ResourceCollection = storage.Resources.Items
    Dim cnt As Integer = Math.Min(count, Users.Length)

winforms-scheduler-customize-popup-menu/VB/PopupMenuCustomization/MySchedulerHelper.vb#L11

vb
Public Shared Sub FillResources(ByVal storage As SchedulerDataStorage, ByVal count As Integer)
    Dim resources As ResourceCollection = storage.Resources.Items
    Dim cnt As Integer = Math.Min(count, Users.Length)

winforms-scheduler-drag-drop-appointments-from-grid/VB/T179722/DataHelper.vb#L16

vb
Public Shared Sub FillResources(ByVal storage As SchedulerDataStorage, ByVal count As Integer)
    Dim resources As ResourceCollection = storage.Resources.Items
    Dim cnt As Integer = Math.Min(count, Users.Length)

See Also

ResourceDataStorage Class

ResourceDataStorage Members

DevExpress.XtraScheduler Namespace