Class SchedulerTimelineView
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class SchedulerTimelineView : SchedulerView, INotifyPropertyChanged
Constructors
SchedulerTimelineView()
Initializes a new instance of the SchedulerTimelineView class.
Declaration
public SchedulerTimelineView()
Properties
CurrentScale
Gets the time scale that was last shown by the ShowTimescale method. If the method was not called, returns null. Use the GetScaling() method to get the scale that is in active use.
Declaration
public SchedulerTimescale CurrentScale { get; }
Property Value
SchedulerTimescale
|
DisplayedCellsCount
Declaration
public int DisplayedCellsCount { get; }
Property Value
System.Int32
|
Duration
Gets TimelineView's duration.
Declaration
public TimeSpan Duration { get; }
Property Value
System.TimeSpan
|
OffsetTimeSpan
Declaration
public override TimeSpan OffsetTimeSpan { get; set; }
Property Value
System.TimeSpan
|
Overrides
RangeEndDate
Gets or sets the TimelineView's RangeEndDate.
Declaration
public DateTime RangeEndDate { get; set; }
Property Value
System.DateTime
|
RangeStartDate
Gets or sets the TimelineView's RangeStartDate.
Declaration
public DateTime RangeStartDate { get; set; }
Property Value
System.DateTime
|
SchedulerTimescales
Gets or sets the TimeScales
Declaration
public ObservableCollection<SchedulerTimescale> SchedulerTimescales { get; set; }
Property Value
ObservableCollection<SchedulerTimescale>
|
ShowNavigationElement
ShowVerticalScrollBar
Gets or sets a value indicating whether to show the vertical scrollbar in SchedulerTimelineView which stands scrolling through the appointments when a cell overflows.
Declaration
public bool ShowVerticalScrollBar { get; set; }
Property Value
System.Boolean
|
StartDate
Gets or sets the start date.
Declaration
public override DateTime StartDate { get; set; }
Property Value
System.DateTime
|
Overrides
ViewType
Gets the view tipe.
Declaration
public override SchedulerViewType ViewType { get; }
Property Value
SchedulerViewType
|
Overrides
Methods
CopyPropertiesToView(SchedulerView)
Copies the properties from the current view.
Declaration
protected override void CopyPropertiesToView(SchedulerView other)
Parameters
SchedulerView
other
|
Overrides
CreateViewWithStartDate(DateTime)
Creates a view which has a specific start date.
Declaration
protected override SchedulerView CreateViewWithStartDate(DateTime startDate)
Parameters
System.DateTime
startDate
|
Returns
SchedulerView
|
Overrides
GetDaysTimescales()
Gets a list with the days time scales.
Declaration
public List<SchedulerTimescale> GetDaysTimescales()
Returns
System.Collections.Generic.List<SchedulerTimescale>
|
GetDefaultFormats()
Gets the list with default supported formats.
Declaration
public List<string> GetDefaultFormats()
Returns
System.Collections.Generic.List<System.String>
|
GetEndDate(DateTime)
Gets the view's end date.
Declaration
protected override DateTime GetEndDate(DateTime startDate)
Parameters
System.DateTime
startDate
|
Returns
System.DateTime
|
Overrides
GetHalfHourTimescales()
Gets a list with the half hour time scales.
Declaration
public List<SchedulerTimescale> GetHalfHourTimescales()
Returns
System.Collections.Generic.List<SchedulerTimescale>
|
GetHoursTimescales()
Gets a list with the hours time scales.
Declaration
public List<SchedulerTimescale> GetHoursTimescales()
Returns
System.Collections.Generic.List<SchedulerTimescale>
|
GetMinutesTimescales()
Gets a list with the minutes time scales.
Declaration
public List<SchedulerTimescale> GetMinutesTimescales()
Returns
System.Collections.Generic.List<SchedulerTimescale>
|
GetMonthsTimescales()
Gets a list with the months time scales.
Declaration
public List<SchedulerTimescale> GetMonthsTimescales()
Returns
System.Collections.Generic.List<SchedulerTimescale>
|
GetNextView(Int32)
Gets the view with offset from the current view.
Declaration
public override SchedulerView GetNextView(int offset)
Parameters
System.Int32
offset
|
Returns
SchedulerView
|
Overrides
GetNextView(NavigationStepTypes, Int32)
GetNextViewWithAppointments(IEnumerable<IEvent>)
Gets the next view containing any of the given appointments.
Declaration
public override SchedulerView GetNextViewWithAppointments(IEnumerable<IEvent> appointments)
Parameters
System.Collections.Generic.IEnumerable<IEvent>
appointments
|
Returns
SchedulerView
|
Overrides
GetPreviousView(Int32)
Gets the previous view.
Declaration
public override SchedulerView GetPreviousView(int offset)
Parameters
System.Int32
offset
|
Returns
SchedulerView
|
Overrides
GetPreviousView(NavigationStepTypes, Int32)
GetPreviousViewWithAppointments(IEnumerable<IEvent>)
Gets the previous view containing any of the given appointments.
Declaration
public override SchedulerView GetPreviousViewWithAppointments(IEnumerable<IEvent> appointments)
Parameters
System.Collections.Generic.IEnumerable<IEvent>
appointments
|
Returns
SchedulerView
|
Overrides
GetScaling()
Gets the TimelineView's scaling.
Declaration
public SchedulerTimescale GetScaling()
Returns
SchedulerTimescale
|
GetScalingMinutes(DateTime)
Declaration
public int GetScalingMinutes(DateTime date)
Parameters
System.DateTime
date
|
Returns
System.Int32
|
GetScalingMinutes(SchedulerTimescale)
Declaration
public int GetScalingMinutes(SchedulerTimescale scale)
Parameters
SchedulerTimescale
scale
|
Returns
System.Int32
|
GetStartDateForScale(DateTime, SchedulerTimescale)
Declaration
protected virtual DateTime GetStartDateForScale(DateTime date, SchedulerTimescale timeScale)
Parameters
System.DateTime
date
|
SchedulerTimescale
timeScale
|
Returns
System.DateTime
|
GetTimescale(Int32)
Gets a Timescale by index.
Declaration
public Timescales GetTimescale(int index)
Parameters
System.Int32
index
|
Returns
Timescales
|
GetTimescale(Timescales)
Gets a SchedulerTimescale by a passed as a parameter scale.
Declaration
public SchedulerTimescale GetTimescale(Timescales scale)
Parameters
Timescales
scale
|
Returns
SchedulerTimescale
|
GetViewContainingDate(DateTime)
Gets the view which contains a specific date.
Declaration
public override SchedulerView GetViewContainingDate(DateTime date)
Parameters
System.DateTime
date
|
Returns
SchedulerView
|
Overrides
GetVisibleTimescales(Timescales)
Gets a list with the visible time scales.
Declaration
public List<SchedulerTimescale> GetVisibleTimescales(Timescales scale)
Parameters
Timescales
scale
|
Returns
System.Collections.Generic.List<SchedulerTimescale>
|
GetWeeksTimescales()
Gets a list with the weeks time scales.
Declaration
public List<SchedulerTimescale> GetWeeksTimescales()
Returns
System.Collections.Generic.List<SchedulerTimescale>
|
GetYearsTimescales()
Gets a list with the years time scales.
Declaration
public List<SchedulerTimescale> GetYearsTimescales()
Returns
System.Collections.Generic.List<SchedulerTimescale>
|
IsAppointmentInView(IEvent)
Determines whether a given appointment intersects with this view..
Declaration
public override bool IsAppointmentInView(IEvent appointment)
Parameters
IEvent
appointment
The appointment. |
Returns
System.Boolean
|
Overrides
OnRefreshNeeded()
Fires the RefreshNeeded event.
Declaration
protected virtual void OnRefreshNeeded()
SetStartDate(DateTime)
Sets view's start date.
Declaration
protected override bool SetStartDate(DateTime value)
Parameters
System.DateTime
value
|
Returns
System.Boolean
|
Overrides
ShowTimescale(SchedulerTimescale)
Shows a timescale. The specified scale must be present in the SchedulerTimescales collection.
Declaration
public void ShowTimescale(SchedulerTimescale timeScale)
Parameters
SchedulerTimescale
timeScale
The scale to show. |
ShowTimescale(Timescales)
Shows the timescale with the specified type.
Declaration
public void ShowTimescale(Timescales scale)
Parameters
Timescales
scale
The type of the scale to show. |
UpdateOnPropertyChange(String)
Declaration
protected override void UpdateOnPropertyChange(string propertyName)
Parameters
System.String
propertyName
|
Overrides
Events
RefreshNeeded
Occurs when a Refresh is necessary.
Declaration
public event EventHandler RefreshNeeded
Event Type
System.EventHandler
|