corelibraries-devexpress-dot-xtrascheduler-dot-resourcemappinginfo-1b498d51.md
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
[DefaultValue("")]
public virtual string Caption { get; set; }
<DefaultValue("")>
Public Overridable Property Caption As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
A String value that specifies the name of the bound data field.
|
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
mappings.Color = "ResColor";
mappings.Caption = "Name";
mappings.ParentId = "ParentId";
winforms-scheduler-handle-fetchappointments-event/CS/Form1.cs#L30
mappings.Color = "ResColor";
mappings.Caption = "Name";
mappings.Id = "ResID";
mappings.Caption = "Name";
mappings.Color = "ResColor";
winforms-scheduler-replace-default-command/CS/WindowsFormsApplication1/Form1.cs#L40
mappings.Id = "ResID";
mappings.Caption = "Name";
winforms-scheduler-handle-fetchappointments-event-entity-framework/CS/Form1.cs#L63
this.schedulerStorage1.Resources.Mappings.Id = "ID";
this.schedulerStorage1.Resources.Mappings.Caption = "Model";
winforms-scheduler-gantt-view/VB/dxT183299/Form1.vb#L59
mappings.Color = "ResColor"
mappings.Caption = "Name"
mappings.ParentId = "ParentId"
winforms-scheduler-handle-fetchappointments-event/VB/Form1.vb#L35
mappings.Color = "ResColor"
mappings.Caption = "Name"
Dim customResourceCollection As CustomResourceCollection = New CustomResourceCollection()
mappings.Id = "ResID"
mappings.Caption = "Name"
mappings.Color = "ResColor"
winforms-scheduler-replace-default-command/VB/WindowsFormsApplication1/Form1.vb#L40
mappings.Id = "ResID"
mappings.Caption = "Name"
winforms-scheduler-handle-fetchappointments-event-entity-framework/VB/Form1.vb#L56
schedulerStorage1.Resources.Mappings.Id = "ID"
schedulerStorage1.Resources.Mappings.Caption = "Model"
End Sub
See Also