Back to Devexpress

ResourceMappingInfo.Caption Property

corelibraries-devexpress-dot-xtrascheduler-dot-resourcemappinginfo-1b498d51.md

latest5.9 KB
Original Source

ResourceMappingInfo.Caption Property

Gets or sets the data field which a resource’s Resource.Caption property is bound to.

Namespace : DevExpress.XtraScheduler

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

NuGet Package : DevExpress.Scheduler.Core

Declaration

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

Property Value

TypeDefaultDescription
StringString.Empty

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

|

Remarks

Use the Caption property to bind a resource’s Resource.Caption property to a data field. The data field is taken 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 Caption 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-gantt-view/CS/dxT183299/Form1.cs#L62

csharp
mappings.Color = "ResColor";
mappings.Caption = "Name";
mappings.ParentId = "ParentId";

winforms-scheduler-handle-fetchappointments-event/CS/Form1.cs#L30

csharp
mappings.Color = "ResColor";
mappings.Caption = "Name";

how-to-initialize-appointment-images-and-display-text-using-the-custom-field-values-t328320/CS/CustomAppointmentImageAndText/Form1.cs#L57

csharp
mappings.Id = "ResID";
mappings.Caption = "Name";
mappings.Color = "ResColor";

winforms-scheduler-replace-default-command/CS/WindowsFormsApplication1/Form1.cs#L40

csharp
mappings.Id = "ResID";
mappings.Caption = "Name";

winforms-scheduler-handle-fetchappointments-event-entity-framework/CS/Form1.cs#L63

csharp
this.schedulerStorage1.Resources.Mappings.Id = "ID";
this.schedulerStorage1.Resources.Mappings.Caption = "Model";

winforms-scheduler-gantt-view/VB/dxT183299/Form1.vb#L59

vb
mappings.Color = "ResColor"
mappings.Caption = "Name"
mappings.ParentId = "ParentId"

winforms-scheduler-handle-fetchappointments-event/VB/Form1.vb#L35

vb
mappings.Color = "ResColor"
mappings.Caption = "Name"
Dim customResourceCollection As CustomResourceCollection = New CustomResourceCollection()

how-to-initialize-appointment-images-and-display-text-using-the-custom-field-values-t328320/VB/CustomAppointmentImageAndText/Form1.vb#L54

vb
mappings.Id = "ResID"
mappings.Caption = "Name"
mappings.Color = "ResColor"

winforms-scheduler-replace-default-command/VB/WindowsFormsApplication1/Form1.vb#L40

vb
mappings.Id = "ResID"
mappings.Caption = "Name"

winforms-scheduler-handle-fetchappointments-event-entity-framework/VB/Form1.vb#L56

vb
schedulerStorage1.Resources.Mappings.Id = "ID"
    schedulerStorage1.Resources.Mappings.Caption = "Model"
End Sub

See Also

ResourceMappingInfo Class

ResourceMappingInfo Members

DevExpress.XtraScheduler Namespace