corelibraries-devexpress-dot-xtrascheduler-dot-timescale-ee6414b4.md
Gets or sets the width of the time scale element.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.Core.dll
NuGet Package : DevExpress.Scheduler.Core
[DefaultValue(50)]
public int Width { get; set; }
<DefaultValue(50)>
Public Property Width As Integer
| Type | Default | Description |
|---|---|---|
| Int32 | 50 |
An integer value specifying the width of the time scale.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Width 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-custom-scales-in-timeline-view/CS/HideWeekends/Form1.cs#L44
customWorkWeekScale.Width = 125;
customTimeScaleHour.Width = 125;
winforms-scheduler-hide-weekends-timeline-view/CS/HideWeekends/Form1.cs#L48
TimeScaleWorkWeekDay customWorkWeekScale = new TimeScaleWorkWeekDay();
customWorkWeekScale.Width = 125;
scales.Add(customWorkWeekScale);
winforms-scheduler-custom-draw-appointments/CS/CustomDrawDemo/Form1.cs#L42
schedulerControl1.TimelineView.Scales.Add(new TimeScaleHour());
schedulerControl1.TimelineView.Scales[1].Width = 100;
winforms-scheduler-custom-scales-in-timeline-view/VB/HideWeekends/Form1.vb#L39
Dim customTimeScaleMinutes = New TimeScaleFixedInterval(TimeSpan.FromMinutes(30))
customWorkWeekScale.Width = 125
customTimeScaleHour.Width = 125
winforms-scheduler-hide-weekends-timeline-view/VB/HideWeekends/Form1.vb#L49
Dim customWorkWeekScale As TimeScaleWorkWeekDay = New TimeScaleWorkWeekDay()
customWorkWeekScale.Width = 125
scales.Add(customWorkWeekScale)
winforms-scheduler-custom-draw-appointments/VB/CustomDrawDemo/Form1.vb#L40
schedulerControl1.TimelineView.Scales.Add(New TimeScaleHour())
schedulerControl1.TimelineView.Scales(1).Width = 100
See Also