Back to Devexpress

TimeScale.Width Property

corelibraries-devexpress-dot-xtrascheduler-dot-timescale-ee6414b4.md

latest3.8 KB
Original Source

TimeScale.Width Property

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

Declaration

csharp
[DefaultValue(50)]
public int Width { get; set; }
vb
<DefaultValue(50)>
Public Property Width As Integer

Property Value

TypeDefaultDescription
Int3250

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

csharp
customWorkWeekScale.Width = 125;
customTimeScaleHour.Width = 125;

winforms-scheduler-hide-weekends-timeline-view/CS/HideWeekends/Form1.cs#L48

csharp
TimeScaleWorkWeekDay customWorkWeekScale = new TimeScaleWorkWeekDay();
customWorkWeekScale.Width = 125;
scales.Add(customWorkWeekScale);

winforms-scheduler-custom-draw-appointments/CS/CustomDrawDemo/Form1.cs#L42

csharp
schedulerControl1.TimelineView.Scales.Add(new TimeScaleHour());
schedulerControl1.TimelineView.Scales[1].Width = 100;

winforms-scheduler-custom-scales-in-timeline-view/VB/HideWeekends/Form1.vb#L39

vb
Dim customTimeScaleMinutes = New TimeScaleFixedInterval(TimeSpan.FromMinutes(30))
customWorkWeekScale.Width = 125
customTimeScaleHour.Width = 125

winforms-scheduler-hide-weekends-timeline-view/VB/HideWeekends/Form1.vb#L49

vb
Dim customWorkWeekScale As TimeScaleWorkWeekDay = New TimeScaleWorkWeekDay()
customWorkWeekScale.Width = 125
scales.Add(customWorkWeekScale)

winforms-scheduler-custom-draw-appointments/VB/CustomDrawDemo/Form1.vb#L40

vb
schedulerControl1.TimelineView.Scales.Add(New TimeScaleHour())
schedulerControl1.TimelineView.Scales(1).Width = 100

See Also

TimeScale Class

TimeScale Members

DevExpress.XtraScheduler Namespace