Class
TimeLineSettings

Definition

Namespace:Telerik.Windows.Controls.Scheduling

Assembly:Telerik.Windows.Scheduling.Core.dll

Syntax:

cs-api-definition
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

TimeLineSettings(GroupingSettings, VisibleRangeSettings)

Declaration

cs-api-definition
public TimeLineSettings(GroupingSettings groupingSettings, VisibleRangeSettings visibleRangeSettings)

Parameters

groupingSettings

GroupingSettings

visibleRangeSettings

VisibleRangeSettings

Fields

DefaultPixelLength

Declaration

cs-api-definition
public static readonly TimeSpan DefaultPixelLength

Field Value

TimeSpan

Properties

PixelLength

Declaration

cs-api-definition
public TimeSpan PixelLength { get; set; }

Property Value

TimeSpan

Rounder

Gets or sets Rounder and notifies for changes.

Declaration

cs-api-definition
public IRoundService Rounder { get; set; }

Property Value

IRoundService

TicksPerPixel

Declaration

cs-api-definition
public long TicksPerPixel { get; }

Property Value

long

Implements ITimeLineSettings.TicksPerPixel

TimeLineRange

Declaration

cs-api-definition
public IDateRange TimeLineRange { get; }

Property Value

IDateRange

VisibleRanges

A sorted collection of non-intersecting visible ranges.

Declaration

cs-api-definition
public IList<Range<long>> VisibleRanges { get; }

Property Value

IList<Range<long>>

Implements ITimeLineSettings.VisibleRanges

Methods

GetRanges(IRangeGenerator)

Declaration

cs-api-definition
public IEnumerable<IDateRange> GetRanges(IRangeGenerator rangeGenerator)

Parameters

rangeGenerator

IRangeGenerator

Returns

IEnumerable<IDateRange>

ToPixels(long)

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

Declaration

cs-api-definition
public double ToPixels(long ticks)

Parameters

ticks

long

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

Returns

double

The offset converted to pixels.

Implements ITimeLineSettings.ToPixels(long)

ToTicks(double)

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

Declaration

cs-api-definition
public long ToTicks(double offset)

Parameters

offset

double

Returns

long

Implements ITimeLineSettings.ToTicks(double)