Xceed Toolkit Plus for WPF v4.6 Documentation
UnitSize Property (TimelinePanel)


Xceed.Wpf.Toolkit Assembly > Xceed.Wpf.Toolkit Namespace > TimelinePanel Class : UnitSize Property
Gets or sets the unit size (e.g., in pixels) to use in the timeline.
Syntax
'Declaration
 
Public Property UnitSize As Double
'Usage
 
Dim instance As TimelinePanel
Dim value As Double
 
instance.UnitSize = value
 
value = instance.UnitSize
public double UnitSize {get; set;}
Remarks

Must be used in conjunction with UnitTimeSpan.

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:

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

Reference

TimelinePanel Class
TimelinePanel Members