Back to Devexpress

TimelineView.ResourceHeight Property

windowsforms-devexpress-dot-xtrascheduler-dot-timelineview-18f1fbae.md

latest2.8 KB
Original Source

TimelineView.ResourceHeight Property

Sets fixed resource height and enables pixel scrolling for the SchedulerControl.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
[DefaultValue(0)]
[XtraSerializableProperty]
public virtual int ResourceHeight { get; set; }
vb
<DefaultValue(0)>
<XtraSerializableProperty>
Public Overridable Property ResourceHeight As Integer

Property Value

TypeDefaultDescription
Int320

Fixed resource height.

|

Remarks

The default ResourceHeight value is 0, and the SchedulerControl automatically calculates resource heights based on ResourcesPerPage and the client area.

Specify the ResourceHeight property to explicitly set a constant height for all resources. This also enables pixel scrolling.

csharp
schedulerControl1.TimelineView.ResourceHeight = 100;
vb
schedulerControl1.TimelineView.ResourceHeight = 100

The image below demonstrates the result.

The feature is available for the TimelineView.

The ResourceHeight property has effect when GroupType is SchedulerGroupType.Date or SchedulerGroupType.Resource. The ReshourceHeight does not have effect when any auto-height mode is enabled (see the AutoHeightMode property).

See Also

TimelineView Class

TimelineView Members

DevExpress.XtraScheduler Namespace