Xceed Toolkit Plus for WPF v5.0 Documentation
Xceed.Wpf.Toolkit Assembly / Xceed.Wpf.Toolkit Namespace / TimelinePanel Class / UnitTimeSpan Property


UnitTimeSpan Property (TimelinePanel)
Gets or sets the unit timespan to use in the timeline. Must be used in conjunction with UnitSize.
Syntax
'Declaration
 
Public Property UnitTimeSpan As TimeSpan
 
'Usage
 
Dim instance As TimelinePanel
Dim value As TimeSpan
 
instance.UnitTimeSpan = value
 
value = instance.UnitTimeSpan

Property Value

A TimeSpan representing the unit timespan to use in the timeline.
Remarks

Must be used in conjunction with UnitSize.

The UnitSize and UnitTimeSpan properties are used to determine how much space (UnitSize, in pixels) is used in the representation of an item on the TimelinePanel by each multiple of a given timespan (UnitTimeSpan). For example, on a TimelinePanel in which UnitSize is set to 5.0 (pixels) and UnitTimeSpan is set to 12 hours, an element that lasts 14 days (336 hours) would be 140 pixels wide:

  • 336 / 12 = 28 intervals of 12 hours
  • 28 * 5 = 140

These properties must be used in conjunction and with valid values for them to work properly.

Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also