Back to Devexpress

ResourceMappingInfo.Image Property

corelibraries-devexpress-dot-xtrascheduler-dot-resourcemappinginfo-bd99bc78.md

latest6.1 KB
Original Source

ResourceMappingInfo.Image Property

Gets or sets the data field to which a resource image is bound.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.Core.dll

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
[DefaultValue("")]
public virtual string Image { get; set; }
vb
<DefaultValue("")>
Public Overridable Property Image As String

Property Value

TypeDefaultDescription
StringString.Empty

A String value that specifies the name of the bound data field.

|

Remarks

Use the Image property to bind a resource’s ImageBytes property to a data field. The data field is obtained from the data source specified by the PersistentObjectStorage<T>.DataSource property of the ResourceStorage.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Image 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-mapping-converters/CS/SchedulerMappingConverterExample/Form1.cs#L64

csharp
schedulerStorage1.Resources.Mappings.Id = "ResourceID";
schedulerStorage1.Resources.Mappings.Image = "Image";

winforms-scheduler-data-binding-entity-framework-code-first/CS/XtraSchedulerEFTest/Form1.cs#L37

csharp
this.schedulerStorage1.Resources.Mappings.Id = "ResourceID";
this.schedulerStorage1.Resources.Mappings.Image = "Image";
#endregion #resmappings

winforms-scheduler-linq-to-sql/CS/XtraScheduler_LINQ/Form1.cs#L41

csharp
resStorage.Mappings.Caption = "Model";
    resStorage.Mappings.Image = "Picture";
}

winforms-scheduler-bind-to-xpo/CS/XPO_XtraScheduler_Simple_Example/Form1.cs#L68

csharp
this.schedulerDataStorage1.Resources.Mappings.Id = "Oid";
    this.schedulerDataStorage1.Resources.Mappings.Image = "Image";
}

winforms-scheduler-bind-xpo-multi-resource-appointments/CS/XPO_MultiResource_Example/Form1.cs#L45

csharp
this.schedulerDataStorage1.Resources.Mappings.Id = "ResId";
    this.schedulerDataStorage1.Resources.Mappings.Image = "Image";
}

winforms-scheduler-mapping-converters/VB/SchedulerMappingConverterExample/Form1.vb#L66

vb
schedulerStorage1.Resources.Mappings.Id = "ResourceID"
schedulerStorage1.Resources.Mappings.Image = "Image"

winforms-scheduler-data-binding-entity-framework-code-first/VB/XtraSchedulerEFTest/Form1.vb#L36

vb
Me.schedulerStorage1.Resources.Mappings.Id = "ResourceID"
            Me.schedulerStorage1.Resources.Mappings.Image = "Image"
' #End Region ' #resmappings

winforms-scheduler-linq-to-sql/VB/XtraScheduler_LINQ/Form1.vb#L42

vb
resStorage.Mappings.Caption = "Model"
    resStorage.Mappings.Image = "Picture"
End Sub

winforms-scheduler-bind-to-xpo/VB/XPO_XtraScheduler_Simple_Example/Form1.vb#L68

vb
Me.schedulerDataStorage1.Resources.Mappings.Id = "Oid"
    Me.schedulerDataStorage1.Resources.Mappings.Image = "Image"
End Sub

winforms-scheduler-bind-xpo-multi-resource-appointments/VB/XPO_MultiResource_Example/Form1.vb#L47

vb
Me.schedulerDataStorage1.Resources.Mappings.Id = "ResId"
    Me.schedulerDataStorage1.Resources.Mappings.Image = "Image"
End Sub

See Also

ResourceMappingInfo Class

ResourceMappingInfo Members

DevExpress.XtraScheduler Namespace