Class SchedulerTimelineViewElement
Respresents the main visual element of RadScheduler when in Scheduler
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class SchedulerTimelineViewElement : SchedulerViewElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
SchedulerTimelineViewElement(RadScheduler, SchedulerView)
Initializes a new instance of the Scheduler
Declaration
public SchedulerTimelineViewElement(RadScheduler scheduler, SchedulerView view)
Parameters
Rad The scheduler. |
Scheduler The view. |
Fields
AppointmentHeightProperty
AppointmentMarginProperty
ColumnHeaderHeightProperty
VerticalScrollWidthProperty
ViewHeaderHeightProperty
Properties
AppointmentHeight
Gets or sets the height of the appointment elements.
Declaration
[VsbBrowsable(true)]
public int AppointmentHeight { get; set; }
Property Value
System.
|
AppointmentMargin
Gets or sets the margin between appointments.
Declaration
[VsbBrowsable(true)]
public override Padding AppointmentMargin { get; set; }
Property Value
System.
|
Overrides
ColumnHeaderHeight
Gets the column header height.
Declaration
[VsbBrowsable(true)]
public int ColumnHeaderHeight { get; set; }
Property Value
System.
|
Header
NavigationElement
Presenter
Gets the Timeline
Declaration
public TimelineAppointmentsPresenter Presenter { get; }
Property Value
VerticalScrollWidth
Gets or sets the width of the vertical scroll bar.
Declaration
public int VerticalScrollWidth { get; set; }
Property Value
System.
|
ViewHeaderHeight
Gets the view header height.
Declaration
[VsbBrowsable(true)]
public int ViewHeaderHeight { get; set; }
Property Value
System.
|
VScrollBar
Gets the vertical scrollbar element.
Declaration
public RadScrollBarElement VScrollBar { get; }
Property Value
Rad The VScroll bar. |
Methods
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.
|
Returns
System.
|
Overrides
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateNavigationElement()
GetCellAtPosition(Int32, Int32)
Declaration
public override SchedulerCellElement GetCellAtPosition(int row, int column)
Parameters
System.
|
System.
|
Returns
Overrides
GetCellContainers()
Declaration
public override List<SchedulerCellContainer> GetCellContainers()
Returns
System.
|
Overrides
GetCellCoordinates(SchedulerCellElement)
Declaration
public override TableLayoutPanelCellPosition GetCellCoordinates(SchedulerCellElement cell)
Parameters
Scheduler
|
Returns
System.
|
Overrides
GetColumnHorizontalOffset(Int32, Single)
Gets the horizontal offset of the column with a specified index compared to the left edge of the first column.
Declaration
public float GetColumnHorizontalOffset(int columnIndex, float availableWidth)
Parameters
System. The zero-based column index. |
System. The total width available for columns. |
Returns
System. The offset of the specified column. |
GetColumnsWidth(Int32, Int32, Single)
Gets the total width of a range of columns given their indices.
Declaration
public float GetColumnsWidth(int startColumn, int endColumn, float availableWidth)
Parameters
System. The index of the first column in the range. |
System. The index of the last column in the range. |
System. The total width available for columns. |
Returns
System. The width of the specified column range. |
GetColumnWidth(Int32)
The actual width of a column will be calculated proportionally according to the values other columns have. The default value of each column is one. This means that setting a value of 2 for a given column will make it twice as large compared to other columns. To get the width of a column in pixels use one of the other overloads.
Declaration
public float GetColumnWidth(int columnIndex)
Parameters
System. The zero-based column index. |
Returns
System. The width of the specified column. |
GetColumnWidth(Int32, Single)
Gets the width of the column with a specified index.
Declaration
public float GetColumnWidth(int columnIndex, float availableWidth)
Parameters
System. The zero-based column index. |
System. The total width available for columns. |
Returns
System. The width of the specified column. |
GetDateForValue(Int32)
Gets the start date corresponding to a given value of the horizontal scrollbar.
Declaration
public DateTime GetDateForValue(int value)
Parameters
System. The value of the horizontal scrollbar. |
Returns
System. The date which corresponds to the value. |
GetScrollValue(DateTime)
Gets the value that the horizontal scrollbar needs to be set with in order to display the specified date
Declaration
public int GetScrollValue(DateTime date)
Parameters
System. The specified date. |
Returns
System. The scroll value. |
InitializeChildren()
Initializes the child elements of this view.
Declaration
protected virtual void InitializeChildren()
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.
|
Returns
System.
|
Overrides
NavigateBackward()
NavigateForward()
NavigateToValue(Int32)
OnNavigationElementValueChanged()
OnViewPropertyChanged(Object, PropertyChangedEventArgs)
Declaration
protected override void OnViewPropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters
System.
|
System.
|
Overrides
Scroll(Boolean)
Declaration
public override void Scroll(bool up)
Parameters
System.
|
Overrides
SetColumnWidth(Int32, Single)
Sets the width of a column. The actual width of a column will be calculated proportionally according to the values other columns have. The default value of each column is one. This means that setting a value of 2 for a given column will make it twice as large compared to other columns.
Declaration
public void SetColumnWidth(int columnIndex, float value)
Parameters
System. The index of the column to resize. |
System. The value according to which the actual width will be calculated. |
UpdateNavigationElement()
UpdateVeticalScroll(Single, Single)
Declaration
protected virtual void UpdateVeticalScroll(float presenterHeight, float appointmentsMaxHeight)
Parameters
System.
|
System.
|