New to Telerik UI for WPFStart a free 30-day trial

Definition

Namespace:Telerik.Windows.Controls.Scheduling

Assembly:Telerik.Windows.Scheduling.Core.dll

Syntax:

C#
public class TimeLineSettings : PropertyChangedBase, ITimeLineSettings, INotifyPropertyChanged

Inheritance: objectPropertyChangedBaseTimeLineSettings

Implements: INotifyPropertyChangedITimeLineSettings

Inherited Members PropertyChangedBase.OnPropertyChanged(PropertyChangedEventArgs)PropertyChangedBase.OnPropertyChanged(string)PropertyChangedBase.OnPropertyChanged<T>(Expression<Func<T>>)PropertyChangedBase.PropertyChanged

Constructors

C#
public TimeLineSettings(GroupingSettings groupingSettings, VisibleRangeSettings visibleRangeSettings)
Parameters:groupingSettingsGroupingSettingsvisibleRangeSettingsVisibleRangeSettings

Fields

C#
public static readonly TimeSpan DefaultPixelLength

Properties

C#
public TimeSpan PixelLength { get; set; }

Gets or sets Rounder and notifies for changes.

C#
public IRoundService Rounder { get; set; }
C#
public long TicksPerPixel { get; }

Implements: ITimeLineSettings.TicksPerPixel

C#
public IDateRange TimeLineRange { get; }

A sorted collection of non-intersecting visible ranges.

C#
public IList<Range<long>> VisibleRanges { get; }

Implements: ITimeLineSettings.VisibleRanges

Methods

C#
public IEnumerable<IDateRange> GetRanges(IRangeGenerator rangeGenerator)
Parameters:rangeGeneratorIRangeGeneratorReturns:

IEnumerable<IDateRange>

Converts offset in ticks to pixels where the zero tick (with value 0) corresponds to the 0 pixels offset.

C#
public double ToPixels(long ticks)
Parameters:tickslong

The offset to be converted where 0 is the base value.

Returns:

double

The offset converted to pixels.

Implements: ITimeLineSettings.ToPixels(long)

Converts offset in pixels to ticks offset where the zero tick (with value 0) corresponds to the 0 pixels offset.

C#
public long ToTicks(double offset)
Parameters:offsetdoubleReturns:

long

Implements: ITimeLineSettings.ToTicks(double)