GanttDateEditProperties.Assign(PropertiesBase) Method
Copies settings of the specified object to the current object.
Namespace: DevExpress.Web.ASPxGantt
Assembly: DevExpress.Web.ASPxGantt.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Parameters
Name | Type | Description |
---|---|---|
source | PropertiesBase | The source object. |
Remarks
If source and destination objects are instances of different PropertiesBase descendants, the Assign
method copies only the properties common to both descendants.
The example below copies column editor settings between two GanttDateTimeColumn objects:
protected void Page_Init() {
// ...
GanttDateTimeColumn startDate = new GanttDateTimeColumn();
startDate.FieldName = "StartDate";
startDate.PropertiesDateEdit.AllowUserInput = true;
startDate.PropertiesDateEdit.Width = 70;
startDate.PropertiesDateEdit.MinDate = DateTime.Now;
GanttDateTimeColumn endDate = new GanttDateTimeColumn();
endDate.PropertiesDateEdit.Assign(startDate.PropertiesDateEdit);
endDate.FieldName = "EndDate";
Gantt.SettingsTaskList.Columns.Add(startDate);
Gantt.SettingsTaskList.Columns.Add(endDate);
}
See Also